VB.NET

Moderators: seancampbell
Number of threads: 4022
Number of posts: 10035

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Forcing a check in a checkbox in a datagrid Posted by apenticoff on 14 Jan 2007 at 11:08 AM
I have a datagrid with 3 checkboxes on each line.

Because only 1 checkbox can be checked on each line I am unchecking the other 2 checkboxes when a user checks a checkbox. This is pretty simple and is working fine. My problem is that I don't want a user to be able to uncheck a checkbox by clicking on it again after they already checked it. I would like to have any click on a checkbox to result in a check in that box. In the CellContentClick event I determine which checkbox was clicked and set the value of that cell to true. But it still leaves that cell unchecked if it was checked before the click. I am thinking that it actually resets the value of the cell after the CellContentclick event is completed which resets the value to false.
Any ideas? Thanks, Art
Thread Tree
apenticoff Forcing a check in a checkbox in a datagrid on 14 Jan 2007 at 11:08 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.