CheckBox in Header of a DataGrid for ChkAll/Unchk
I am using C#.NET, Visual Web Developer and SQL Server 2000.
I have a DataGrid which has checkboxes in its all rows.
Now I was able to add a checkbox in header of a DataGird. Now I dont know how to write a code such that when I select header Checkbox all Checkboxes are selected and same when I Unselect the header CheckBox.
I was trying to use JavaScript but it did not work for me.
Is there any other option ? (I do not want to use RowSelectorColumn Control)
Please Help!
|