ComponentOne WebMenus and WebBars for ASP.NET: WebMenus and WebBars for ASP.NET Task-Based Help > C1WebTreeView Tasks > Disabling a Specific Item Within the TreeView

Disabling a Specific Item Within the TreeView

To disable a specific item within the treeview, use the following code:

      Visual Basic

Dim item0 As C1WebTreeViewItem = C1WebTreeView1.Items(0)

Dim item1 As C1WebTreeViewItem = item0.NestedGroup.Items(0)

item1.Enabled = False

      C#

C1WebTreeViewItem item0 = C1WebTreeView1.Items[0];

C1WebTreeViewItem item1 = item0.NestedGroup.Items[0];

item1.Enabled = false;


Send comments about this topic to ComponentOne.
Copyright © 1987-2009 ComponentOne LLC. All rights reserved.