Click here to Skip to main content
15,920,383 members
Please Sign up or sign in to vote.
4.33/5 (2 votes)
See more:
I'm setting up a search and I want the user to be able to decide if they want to see results based on a particular state of a boolean column in the table or ignore it and retrieve all rows regardless of the boolean state. (I hope that makes sense)

Essentially I want the user to be able to set a checkbox as checked, unchecked, or indeterminate and have my program act on any three of these states. Is it possible to catch an indeterminate checkstate? If so, how? As far as I can tell, both checked and indeterminate return a true checked value, so I can't use null, and there is no checkstate value for indeterminate.

Help! (Thanks in advance! Any help or advice would be tremendously appreciated!)
Posted

1 solution

Check the CheckState property (no pun intended!).

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900