Skip to content

Commit 450e71a

Browse files
Update README.md
1 parent a8a030a commit 450e71a

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

README.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
1-
# How-to-programmatically-expand-the-root-nodes-in-winforms-treeviewadv-
2-
This session explains how to programmatically expand the root nodes in winforms treeviewadv?
1+
# How to programmatically expand the root nodes in WinForms TreeViewAdv?
2+
3+
You can expand the [Root](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.TreeViewAdv.html#Syncfusion_Windows_Forms_Tools_TreeViewAdv_Root) nodes of the [WinForms TreeViewAdv](https://www.syncfusion.com/winforms-ui-controls/treeview) by using the [Expand](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.TreeNodeAdv.html#Syncfusion_Windows_Forms_Tools_TreeNodeAdv_Expand) method of the node.
4+
5+
```csharp
6+
TreeNodeAdv root = this.treeViewAdv1.Root;
7+
8+
foreach (TreeNodeAdv node in root.Nodes)
9+
{
10+
node.Expand();
11+
}
12+
root.Expand();
13+
```

0 commit comments

Comments
 (0)