Skip to main content
Tab

ASPxTreeView.SelectedNode Property

Gets or sets the selected node in an ASPxTreeView control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

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.

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