Hi,
Normal 0 false false false MicrosoftInternetExplorer4
I have a webgrid with 2 columns. The first column is a bound field and the second is an unbound field with data type as Boolean and type set as check box. Now I want to be able to select all and unselect the check boxes on a button click. Can anyone give me an example of how which can be done on the client side?
Thanks in advance.
The short answer is that you loop through all the rows in your grid, and for each row, set the Value of the cell corresponding to your checkbox column to true.
The following article from our online Knowledge Base illustrates how to do this in response to clicking the column header of a checkbox column:HOWTO: WebGrid: How to check all checkboxes in a column when the header is clicked