Skip to content

Commit 49e56e6

Browse files
authored
Merge pull request #3 from SyncfusionExamples/ES-975464-new
ES-975464 - Resolve the ReadMe issue in this sample repository
2 parents 873304d + 01ef89f commit 49e56e6

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
# 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 TreeViewAdv.
24

35
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.
46

5-
```csharp
7+
``` csharp
68
TreeNodeAdv root = this.treeViewAdv1.Root;
79

810
foreach (TreeNodeAdv node in root.Nodes)
911
{
12+
// Call the Expand method on each root node.
1013
node.Expand();
1114
}
15+
1216
root.Expand();
1317
```
18+
19+
![How to programmatically expand the root nodes in WinForms TreeView](https://www.syncfusion.com/uploads/user/kb/wf/wf-28805/wf-28805_img1.png)
20+
21+
Take a moment to peruse the [WinForms TreeView - Getting Started](https://help.syncfusion.com/windowsforms/treeview/getting-started) documentation, where you can find about treeview with code examples.

0 commit comments

Comments
 (0)