Skip to main content

ASPxTreeView.SelectedNode Property

Gets or sets the selected node in an ASPxTreeView control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll


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.

View Example: How to Prevent Parent Node Collapsing

See Also