开发者

Adding new root in the treelist during runing

开发者 https://www.devze.com 2023-01-19 19:38 出处:网络
Hii I am using xtratreelist.In this i have created an unbound treelist. I added a button in the form.Now i need the butt开发者_JAVA百科on to function such that when i click on the button it should a

Hii

I am using xtratreelist.In this i have created an unbound treelist.

I added a button in the form.Now i need the butt开发者_JAVA百科on to function such that when i click on the button it should add a new root in the treelist.how it can be done..please help me from the basic please...


Here is the code from How to: Create Nodes in Unbound Mode in Code showing how to create a root node:

TreeListNode parentForRootNodes = null;
    TreeListNode rootNode = tl.AppendNode(
        new object[] { "Alfreds Futterkiste", "Germany, Obere Str. 57", "030-0074321" }, 
        parentForRootNodes);
0

精彩评论

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