You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# How to programmatically expand the root nodes in WinForms TreeView?
2
2
3
-
This session explains how to programmatically expand the root nodes in [WinForms TreeView](https://help.syncfusion.com/windowsforms/treeview/overview) (TreeViewAdv).
3
+
This session explains how to programmatically expand the root nodes in WinForms TreeViewAdv.
4
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.
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 [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.
6
6
7
7
```csharp
8
8
TreeNodeAdvroot=this.treeViewAdv1.Root;
@@ -16,4 +16,6 @@ foreach (TreeNodeAdv node in root.Nodes)
16
16
root.Expand();
17
17
```
18
18
19
-

19
+

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