Click here to Skip to main content
11,502,845 members (68,525 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: checkbox DataGrid
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 16-Oct-12 4:56am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Comments
rohit ranjan at 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)



Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 16 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100