如何将chidnode递归绑定到父节点 [英] How recursively bind chidnode to a parent node

查看:77
本文介绍了如何将chidnode递归绑定到父节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在列表中有n个雇员姓名,请保留它
1
2
3
.
.
n

我想将此详细信息绑定到我的treeview1上,例如
1
-2
--3
.
.
---... n
如何执行此操作.任何人都可以粘贴此代码
在此先感谢
Amrutha

Hi all

i have n number of employeenames in a list let it be
1
2
3
.
.
n

I want to bind this details to my treeview1 like
1
-2
--3
.
.
---...n
How to do this.Can any one paste code for this
Thanks in Advance
Amrutha

推荐答案

如果您想要一棵持续倒下的树,只需遍历您的集合并继续调用该方法以添加一个孩子.没有人可以粘贴您可以使用的代码,而无需查看代码并知道数据的命名方式.
If you want one tree that keeps going down, just iterate over your collection and keep calling the method to add a child. No-one can paste code you can use, without seeing your code and knowing the way your data is named.


这篇关于如何将chidnode递归绑定到父节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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