2011-09-28 70 views
0

我有一個樹節點,並且可以檢查樹節點。問題是我需要能夠以編程方式變灰或禁用特定的節點。因此,例如在c中使用樹節點類#

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

因此,可以說,我查「另一個節點2」,那麼它不應該dissapear而是顯示爲灰色或禁用,但仍然可見

所以它看起來像這樣

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

我希望你明白我想做什麼,只是不知道如何禁用它,仍然保持可見。

謝謝

+0

某些特定TreeView組件的這些樹節點? WinForms,WPF,ASP.NET,你剛剛編碼的東西? – millimoose

+0

我指定了asp.net和C#。使用TreeView類 – user710502

回答