Click here to Skip to main content
13,052,342 members (52,708 online)
Rate this:
Please Sign up or sign in to 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.

Posted 16-Oct-12 4:56am

1 solution

Rate this: bad
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
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 16 Oct 2012
Copyright © CodeProject, 1999-2017
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