tags:

views:

26

answers:

1

HII

I am using xtratreelist in this i have a treelist and a button in the form .the button is placed such that when the user clicks the button a new parent node(root node) is created.

but now i want to create a child node from the parent node while clicking another button ..help me please,,,,

A: 

Try this:

TreeNode node = new TreeNode("ChildNode");
treeList.Nodes[0].Nodes.Add(node);
Guitar-Guy