All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TreeViewControl.CurrentNode Property

Gets or sets the currently focused node.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.2.dll

Declaration

public TreeListNode CurrentNode { get; set; }
Public Property CurrentNode As TreeListNode

Property Value

Type Description
TreeListNode

The focused node.

Remarks

When Multiple Node Selection mode is disabled, the CurrentNode and SelectedItem properties refer to the focused node.

When Multiple Node Selection mode is enabled, the CurrentNode property refers to the last selected node (focused node), and the SelectedItem property refers to the node that was selected first (the first item in the SelectedItems collection).

Set the SelectionMode property to Cell/Row/MultipleRow to enable Multiple Node Selection mode.

The TreeViewControl raises the CurrentNodeChanged event after the node focus moves to another node.

See Also