Search code examples
c#winformsdevexpresstreelist

How to add nodes in DevExpress TreeList programmatically?


I want to add node at specific index in DevExpress TreeList. I have seen post#1 and post#2 but unable to get what I need. I only want code that takes the parent node number/id and add child node to it.

I found this function, and i think it will work

treelist.AppendNode(object nodeinfo, int parentID);

How to give this node info?


Solution

  • Please, take a look at documentation: How to: Create Nodes in Unbound Mode in Code

    Related link: Unbound Mode