I use a treeview in my application (C#, gui). I want to hide checkboxes in 'Node 1' and in 'Node 1.1.1'. How can i do it? My treeview looks like that:
TreeView 1
-Node 1
- Node 1.1
-Node 1.1.1
-Node 1.1.1.A
-Node 1.1.1.B
-Node 1.1.2
-Node 1.1.2.A
I use :
treeview1.checkboxes = true;
to show all checkboxes, but how can i hide someone?
Unfortunately no, not without subclassing TreeView and overriding some of the control painting.
This question's accepted answer has the information you need: How can I control checkboxes in a .Net Forms.TreeView?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With