I have a TreeView on my form but I'd like it to always be fully expanded, even the child nodes.
Is there a way?
Do you want it to initially display expanded? If so, then call the ExpandAll
method on the root node after you have added all of the tree nodes.
If you want it to display expanded and not allow the user to collapse it, then you need to handle the BeforeCollapsed
event and cancel it. (Set e.Cancel = true;
).
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