开发者

using tree node class in c#

I have a tree node and the tree node can be checked. The thing is that I need to be able to gray out or di开发者_JS百科sable a specific node programmatically. So for instance

  [] Head Node
      [sub Node]
      [sub Node]
  [] another node 1
  [] another node 2

So lets say that I check "another node 2" then it should not dissapear but instead appear grayed out or disabled but still visible

so it would look like this

  [] Head Node
      [sub Node]
      [sub Node]
  [] another node 1
  [X] another node 2  //and this would be disabled but still visible

I hope you understand what I want to do just not sure how to disable it and still keep it visible.

Thank you


There doesn't seem to be a way to "disable" an ASP.NET tree node. What you can do is disable its select action, and change its style.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜