Treeviewnode启用和禁用? [英] Treeviewnode Enable and Disable?
本文介绍了Treeviewnode启用和禁用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
如何设置enable = false;到Treeview控件中每个父节点.
让我知道答案.
问候
Pawan.
Hi
How to set enable=false; to each of my parent nodes in treeview control.
Let me know the answer.
Regards
Pawan.
推荐答案
好像要禁用特定级别的所有节点:
您必须遍历给定级别的所有节点,并分别禁用这些节点.
或
如果要一次禁用所有级别的所有节点,则只需执行以下操作:
Looks like you want to disable all the nodes at a particular level:
You have to loop through all the nodes at a given level and disable the nodes individually.
Or
If you want to disable all the nodes of all levels at once then you just need to do:
<asp:TreeView ID="TreeView1" Enabled="false"...
嗨
我仅使用C#(Windows),而不使用Web应用程序.
和
我试图禁用每个级别的rootnode.
但无法解决.
如果您有任何想法,请让我知道.
Hi
I am using only C#(Windows) not web app.
and
i tried to disable the rootnode of each level.
but unable to reach the solution.
If you have any idea,plz let me know.
这篇关于Treeviewnode启用和禁用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文