Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
Hi everyone
 
For the check boxes for the in the windows form application, I wonder if there is a 3rd state I could use. For example, if the parent is checked then all of it's childs are checked. if the parent is unchecked then all of it's child are unchecked. But if some of the childs are checked, and the others aren't, I want to have the parent be in a 3rd state. Stating that some of it's children are checked.
 
Thanks for the time and apperciation.
Posted 8-Jun-11 8:20am

1 solution

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

Solution 2

It's not that simple. The standard TreeView control in the ToolBox doesn't support doing this natively, so you have to make your own, or find a third party control that does this for you.
 
There's a couple of CP articles that cover doing something like this here[^] and here[^].
  Permalink  
Comments
Member 7975239 at 8-Jun-11 17:05pm
   
Thanks, I just had to find out how to use and add componants to the windows form. Thanks much!
SAKryukov at 8-Jun-11 17:21pm
   
True, a 5.
--SA
Monjurul Habib at 8-Jun-11 18:53pm
   
nice explanation with links, my 5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 555
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 369
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,466
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,897


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 8 Jun 2011
Copyright © CodeProject, 1999-2014
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