asp.net.ph

TreeNode.Selected Property

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.

Syntax


Inline <asp:treenode selected = true | false ... >
Script TreeNode.Selected [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true to indicate that the current TreeNode is selected; otherwise, false. Default value is false.

Remarks

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.

See Also

TreeNode Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph