Creating a child node from a parent node
HII
I am using xtratreelist in this i have a tree开发者_如何学Clist 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,,,,
Try this:
TreeNode node = new TreeNode("ChildNode");
treeList.Nodes[0].Nodes.Add(node);
精彩评论