Articles in this section

How to programmatically expand the root nodes in WinForms TreeViewAdv?

You can expand the Root nodes of the WinForms TreeViewAdv by using the Expand method of the node.

TreeNodeAdv root = this.treeViewAdv1.Root;

foreach (TreeNodeAdv node in root.Nodes)
{
    // Call the Expand method on each root node.
    node.Expand();
}

root.Expand();

Output

 
Take a moment to peruse the WinForms TreeView - Getting Started documentation, where you can find about treeview with code examples.

 
View sample in GitHub

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied