Salman
Salman

Reputation: 1380

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?

Upvotes: 7

Views: 36097

Answers (1)

DmitryG
DmitryG

Reputation: 17850

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

Related link: Unbound Mode

Upvotes: 8

Related Questions