Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.12 KB

File metadata and controls

21 lines (14 loc) · 1.12 KB

How to programmatically expand the root nodes in WinForms TreeView?

This session explains 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();

How to programmatically expand the root nodes in WinForms TreeView

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