I'm in need of a JavaScript function that can enable select all and deselect all functionality within an ASP.NET GridView.
The desired behavior is for the header checkbox to toggle the selection state of all item template checkboxes. If any item template checkbox is deselected, the header checkbox should also be deselected.
Thank you!