From 57392d84ab5a8d592b01d5134d0cc42df03a9d58 Mon Sep 17 00:00:00 2001 From: SreemonPremkumarMuthukrishnan Date: Mon, 15 Sep 2025 16:13:26 +0530 Subject: [PATCH 1/2] ES-975464 - Resolve the ReadMe issue in this sample repository --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5e9ffff..f822bc9 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,19 @@ -# How to programmatically expand the root nodes in WinForms TreeViewAdv? +# How to programmatically expand the root nodes in WinForms TreeView? -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. +This session explains how to programmatically expand the root nodes in [WinForms TreeView](https://help.syncfusion.com/windowsforms/treeview/overview) (TreeViewAdv). -```csharp +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. + +``` csharp 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](https://www.syncfusion.com/uploads/user/kb/wf/wf-28805/wf-28805_img1.png) \ No newline at end of file From 01ef89f3c52e79158d2e0c7d83f2e2904b3e63a2 Mon Sep 17 00:00:00 2001 From: SreemonPremkumarMuthukrishnan Date: Mon, 15 Sep 2025 16:34:18 +0530 Subject: [PATCH 2/2] ES-975464 - Addresses the concerns --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f822bc9..c7f435e 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # How to programmatically expand the root nodes in WinForms TreeView? -This session explains how to programmatically expand the root nodes in [WinForms TreeView](https://help.syncfusion.com/windowsforms/treeview/overview) (TreeViewAdv). +This session explains how to programmatically expand the root nodes in WinForms TreeViewAdv. -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. +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. ``` csharp TreeNodeAdv root = this.treeViewAdv1.Root; @@ -16,4 +16,6 @@ foreach (TreeNodeAdv node in root.Nodes) root.Expand(); ``` -![How to programmatically expand the root nodes in WinForms TreeView](https://www.syncfusion.com/uploads/user/kb/wf/wf-28805/wf-28805_img1.png) \ No newline at end of file +![How to programmatically expand the root nodes in WinForms TreeView](https://www.syncfusion.com/uploads/user/kb/wf/wf-28805/wf-28805_img1.png) + +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. \ No newline at end of file