how to detect how many check box is checked on a particular column of datagrid?
-
say suppose there is 20 rows and two column in my datagrid and on the 2nd column having full of check boxes and i want to detect in loop, which check boxes are checked on 2nd column of datgrid. i think it is possible but now i dont know the way so please tell in detail with sample code. tbhattacharjee
-
say suppose there is 20 rows and two column in my datagrid and on the 2nd column having full of check boxes and i want to detect in loop, which check boxes are checked on 2nd column of datgrid. i think it is possible but now i dont know the way so please tell in detail with sample code. tbhattacharjee
Check out the article at http://www.codeproject.com/useritems/chksavegrid.asp There is a sub called Iterate() that loops through each row and checks if the checkbox is checked. You can simply put a counter there and voila!