Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Three State Treeview Windows Forms

One of the frustrations with the standard TreeView is that you can't show a partial selection to indicate that some of the children are selected. A partial selection in a complex tree allows the user to easily determine where the selections are, even if the tree is not completely expanded. A similar idea is used in manu backup programs to allow the user to select the files to be backed up.

Does anyone know of a way to make the checks in a treeview checkbox gray? I want to gray the check of a parent node when some (but not all) of its child nodes are checked. Kinda like what you see when you are selecting options to install during a software installation.

I have seen several post, but is older (2000, 2007 year).

I now, in 2010, the better answer possible is required. I use VS 2008 . Net 3.5 , Windows Forms

like image 955
Kiquenet Avatar asked Dec 28 '25 16:12

Kiquenet


1 Answers

I am using this Tri-State TreeView, also from CodeProject. Works just fine - should you need a project more up to date.

like image 124
Otiel Avatar answered Dec 30 '25 15:12

Otiel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!