TreeViewControl.CurrentNode Property
Gets or sets the currently focused node.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
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.