System.Web.UI.WebControls.TreeNode.Selected Property

Gets or sets a value that indicates whether the node is selected.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool Selected { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the TreeNode.Selected property to specify or determine whether the node is selected.

Note:

Although the property can be used to determine whether the node is selected, it is more common to use the TreeView.SelectedNode property.

Only one node can be selected at a time in the System.Web.UI.WebControls.TreeView control when using this property.

Note:

As an alternative, you can also select the node by using the TreeNode.Select method.

The value of this property is stored in view state.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0