)
We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to load TreeNodeAdv in WinForms MultiColumnTreeView during initialization time?

Platform: WinForms |
Control: MultiColumnTreeView |
Published Date: May 12, 2015 |
Last Revised Date: January 7, 2020

Load the TreeNodeAdv

In MultiColumnTreeView, TreeNodeAdv can be populated by using its property called Nodes. The following code example is to demonstrate the same.

C#

multiColumnTreeView1.BeginUpdate(Syncfusion.Windows.Forms.BeginUpdateOptions.Invalidate);
for (int parent = 0; parent < 10; parent++)
{
    TreeNodeAdv node = new TreeNodeAdv("parent");
    this.multiColumnTreeView1.Nodes.Add(node);
    for (int child = 0; child < 10; child++)
    {
        TreeNodeAdv node2 = new TreeNodeAdv("child");
        node.Nodes.Add(node2);
    }
}
this.multiColumnTreeView1.EndUpdate();

VB

multiColumnTreeView1.BeginUpdate(Syncfusion.Windows.Forms.BeginUpdateOptions.Invalidate)
For parent As Integer = 0 To 9
     Dim node As New TreeNodeAdv("Parent node")
     Me.multiColumnTreeView1.Nodes.Add(node)
     For child As Integer = 0 To 9
 Dim node2 As New TreeNodeAdv("Child node")
 node.Nodes.Add(node2)
     Next child
Next parent
Me.multiColumnTreeView1.EndUpdate()

Samples:

C#: http://www.syncfusion.com/downloads/support/directtrac/136015/MultiColumnTreeView1877369636.zip

VB: http://www.syncfusion.com/downloads/support/directtrac/137627/MultiColumnTreeView_VB-1276460950.zip

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon