Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am new here,I have a grid with some checked & unchecked check boxes,& on click button of asp.net i want to add the checked rows to database,so which method will be best ?

I can use loop easily,,but dont know this is better or not
Posted

1 solution

Since the grid doesn't have anything built-in to determine the checked status of a checkbox you either have to iterate through all the rows or maintain a collection of the ones that were checked.

DataGridDemo[^] See the section titled Checkboxes and Textboxes.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900