在树节点和sql表中添加节点 [英] add node in tree node and sql table

查看:143
本文介绍了在树节点和sql表中添加节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在树节点和sql表中添加节点

add node in tree node and sql table

推荐答案

您好,

我可以向您展示如何通过编程将树节点添加到树中.


TreeNode节点编号=新的TreeNode(string.Format(< div> Sample</div>")));
tvCompenPhil.Nodes.Add(Nodenumber);

同样,您可以在树视图中添加树节点数,子节点数
Hello,

I can show you how to add tree node to tree by programming.


TreeNode Nodenumber = new TreeNode(string.Format("<div>Sample</div>"));
tvCompenPhil.Nodes.Add(Nodenumber);

likewise you can add number of tree node, child nodes to tree view




你能更具体些吗?
如果要在TreeView中添加注释,只需创建TreeNode类的实例并将其添加到TreeView组件的Nodes集合中即可.

如果要从表填充TreeView,只需检查以下链接:
从数据库填充TreeView控件 [ ^ ]

在VB.NET中使用数据库快速更新Treeview控件 [ ^ ]


问候
罗伯特
Hi,

can you be more specific?
If you want to add note in TreeView just create instance of TreeNode class and add it into the collection of Nodes of TreeView component.

If you want to populate TreeView from table, just check following links:
Populating a TreeView Control from the Database[^]

Fast Updating of Treeview Control With a Database in VB.NET[^]


Regards
Robert


这篇关于在树节点和sql表中添加节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆