读书人

treeview有两层节点怎么实现所有父节

发布时间: 2012-09-18 16:21:42 作者: rapoo

treeview有两层节点,怎样实现所有父节点无checkbox而所有子节点有checkBox
rt

[解决办法]
好像实现不了
[解决办法]

探讨
引用:
试试

C# code
foreach(TreeNode tn in treeView1.Nodes)
{
if (tn.ChildNodes.Count > 0)
{
tn.ShowCheckBox = false;
}
else
{
tn.ShowCheckBox = true;
}
}


这应该是在web中的用法吧?

读书人网 >C#

热点推荐