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

In my Windows application i have a datagridview having 2 checkbox columns. My requirement is that only one checkbox should be able to check at a time by user. If one checkbox is already selected and if a user trying to check on another checkbox it should show message as "Could not tick both checkbox at a time"


Thanks in advance
Anish
Posted

1 solution

Radiobuttons are suitable for your requirement. Use Radiobuttons in DatagridView column instead of Checkboxes.
 
Share this answer
 
Comments
Anish612 4-Sep-13 2:46am    
Hi,

Thanks for the reply. But i really wanted to do this with checkbox inside datagridview.

Regards
Anish

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