Skip to main content

ASPxTreeView.SelectedNode Property

Gets or sets the selected node in an ASPxTreeView control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public TreeViewNode SelectedNode { get; set; }

Property Value

Type Description

The selected node.


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.

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


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