Articles in this section
Category / Section

How to load TreeNodeAdv in WinForms MultiColumnTreeView during initialization time?

1 min read

Load the TreeNodeAdv

In WinForms 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#: https://www.syncfusion.com/downloads/support/directtrac/136015/MultiColumnTreeView1877369636.zip

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

Conclusion

I hope you enjoyed learning about how to load TreeNodeAdv in WinForms MultiColumnTreeView during initialization time.

You can refer to our WinForms MultiColumnTreeView’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms MultiColumnTreeView documentation to understand how to present and manipulate data. 

For current customers, you can check out our WinForms from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms MultiColumnTreeView and other WinForms components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

 

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