开发者

Creating a child node from a parent node

开发者 https://www.devze.com 2023-01-20 17:58 出处:网络
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 clicksthe button a new parent node(root node) is created.

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消