System.Web.UI.TreeNodes Namespace TreeNode Class
.NET Framework version 2.0
Sets or retrieves a value indicating whether the current TreeNode is selected in a TreeView control.
Inline |
<asp:treenode selected = true | false ... > |
Script |
TreeNode.Selected [ = true | false ] |
This property accepts or returns only a boolean value: true to indicate that the current TreeNode is selected; otherwise, false. Default value is false.
Use the Selected property to specify or determine whether the current TreeNode is selected in a TreeView control.
Although the property can be used to determine whether a node is selected, it is more common to use the SelectedNode property.
NOTE: When using this property, only one node at a time can be selected in the TreeView control.
To programmatically select a node, use the Select method.
TreeNode Members