Tab

ASPxTreeView.SelectedNode Property

Gets or sets the selected node in an ASPxTreeView control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.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

See Also