Rank: Member Groups: Member
Joined: 8/4/2009 Posts: 16
|
Hi all, i already saw the example of how to check / uncheck all rows on a client side using java script, but is there a way to do this via VB on the server side? And how can I put a check box to perform this on the column header?
Thanks in advance Best Regards
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
To do it on the server side, you simply set the Grid cell's value to true or false. It will be something like "Grid1.Items[y].Cells[x].Value = true/false".
To put a checkbox on the column header, you will need to set the header's HeaderText property to raw HTML that includes a checkbox button (for example, <input type="checkbox" name="col1_checkbox" />), you would then check your Request.Form[checkbox_name] to see if the checkbox is checked.
Thanks!
|
Rank: Member Groups: Member
Joined: 8/4/2009 Posts: 16
|
Thank you that's really works.
|