Q:

can we keep the child node expanded even after refreshing the root node? in c#

In my winforms application, there is a requirement to keep tree view child node active even after root node is re-freshed( clicking enter on root node twice) , is it possible at first place? Thanks in advance:)

A:

You can use ExpandAll methode of the treeview control in order to expand all nodes :
treeView1.ExpandAll();

Or you can expand only the node that you want to expand :
 treeView1.Nodes["myNode"].Expand();
 //Or 
 treeView1.Nodes[indexOfYourNode].Expand();

