Grid with CheckBox
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
i want a checkbox in the header column, while checking the check box all rows are selected, by the same deselection also, without postback of the page please guide me -
-
i want a checkbox in the header column, while checking the check box all rows are selected, by the same deselection also, without postback of the page please guide me -
put the following script in tag function CheckAllDataGridCheckBoxes(aspCheckBoxID, checkVal) { re = new RegExp(':' + aspCheckBoxID + '$') //generated control name starts with a colon for(i = 0; i < document.forms[0].elements.length; i++) { elm = document.forms[0].elements[i] if (elm.type == 'checkbox') { if (re.test(elm.name)) { elm.checked = checkVal } } } } THEN UNDER THE OF THE DATAGRID , PUT THIS :