C# 如何以编程方式在 DevExpress TreeList 中添加节点?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12311798/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to add nodes in DevExpress TreeList programmatically?
提问by AndroidLearner
I want to add node at specific index in DevExpress TreeList. I have seen post#1and post#2but unable to get what I need. I only want code that takes the parent node number/id and add child node to it.
我想在DevExpress TreeList. 我看过帖子#1和帖子#2,但无法得到我需要的东西。我只想要采用父节点编号/id 并向其添加子节点的代码。
I found this function, and i think it will work
我找到了这个功能,我认为它会起作用
treelist.AppendNode(object nodeinfo, int parentID);
How to give this node info?
如何给这个节点信息?
采纳答案by DmitryG
Please, take a look at documentation: How to: Create Nodes in Unbound Mode in Code
请查看文档: How to: Create Nodes in Unbound Mode in Code
Related link: Unbound Mode
相关链接:未绑定模式

