Articles in this section
Category / Section

How to programmatically collapse and expand the TreeNodeAdv in WinForms MulticolumnTreeview?

1 min read

Collapse and expand the TreeNodeAdv

In MultiColumnTreeView, the TreeNodeAdv can be collapsed and expanded programmatically by using the CollapseAll and ExpandAll functions. Refer to the following code examples.

C#

//Collapses the nodes in MultiColumnTreeView
this.multiColumnTreeView1.CollapseAll();
//Expands the nodes in MultiColumnTreeview
this.multiColumnTreeView1.ExpandAll();

VB

'Collapses the nodes in MultiColumnTreeView
Me.multiColumnTreeView1.CollapseAll()
'Expands the nodes in MultiColumnTreeview
Me.multiColumnTreeView1.ExpandAll()

Samples:

C#: http://www.syncfusion.com/downloads/support/directtrac/118903/ze/MultiColumnTreeView_Collapse975100970

VB: http://www.syncfusion.com/downloads/support/directtrac/118903/ze/MultiColumnTreeView_Collapse_VB860626253

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied