Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello ALL,

I have situation where first column have checkbox and have multiple rows.I need to implement toggle functionality so that user will select only one checkbox out of multiple row.Also based on selection i need to update particular row of grid and update it into database.Please help.

Thanks
Rohit
Posted

1 solution

use the cellvaluechanged event of the datagrid

if the e.colindex (the column of the value changed) = (your checkbox column)
then -)> run through all rows of the datagrid and update as you need
 
Share this answer
 
Comments
rohit ranjan 16-Oct-12 11:34am    
can you send me sample example....

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