Skip to content

Commit 5eebe26

Browse files
ES-975464 - Resolve the ReadMe issue in this sample repository
1 parent a8a030a commit 5eebe26

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,17 @@
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 TreeView
2+
3+
This session explains how to programmatically expand the root nodes in [WinForms TreeView](https://help.syncfusion.com/windowsforms/treeview/overview) (TreeViewAdv)?
4+
5+
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 [TreeViewAdv](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.TreeViewAdv.html) 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.
6+
7+
``` csharp
8+
TreeNodeAdv root = this.treeViewAdv1.Root;
9+
foreach (TreeNodeAdv node in root.Nodes)
10+
{
11+
// Call the Expand method on each root node.
12+
node.Expand();
13+
}
14+
root.Expand();
15+
```
16+
17+
![How to programmatically expand the root nodes in WinForms TreeView](https://www.syncfusion.com/uploads/user/kb/wf/wf-28805/wf-28805_img1.png)

0 commit comments

Comments
 (0)