Skip to main content
A newer version of this page is available. .
Tab

ASPxTreeView.SelectedNode Property

Gets or sets the selected node in an ASPxTreeView control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public TreeViewNode SelectedNode { get; set; }

Property Value

Type Description
TreeViewNode

The selected node.

Remarks

Use the SelectedNode property to specify the selected node on the server. To clear selected nodes, set the property value to null.

TreeViewNode node = ASPxTreeView.SelectedNode;
ASPxTreeView.SelectedNode = null;

For more information, see the following topic: Selection.

View Example: How to Prevent Parent Node Collapsing

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectedNode property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also