Click here to Skip to main content
11,803,019 members (54,907 online)
Rate this: bad
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 7:20am

1 solution

Rate this: bad
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[^].
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.
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 OriginalGriff 335
1 KrunalRohit 291
2 F-ES Sitecore 270
3 CPallini 270
4 Sergey Alexandrovich Kryukov 234
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,735
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 8 Jun 2011
Copyright © CodeProject, 1999-2015
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