How to deselect selected node (in after select event)?
When you are faced with issues like this (dealing with what api you need to use) You should consult MSDN and then figure it out.
Now, see the TreeView page on msdn. It has a Selectednode property which says :
If no TreeNode is currently selected, the SelectedNode property is null.
Also, it has a getter and setter. So my best bet is:
myTreeView.SelectedNode = null;//will deselect it
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