Back to Devexpress

TreeViewControl.CurrentNode Property

wpf-devexpress-dot-xpf-dot-grid-dot-treeviewcontrol-3b103ea1.md

latest1.8 KB
Original Source

TreeViewControl.CurrentNode Property

Gets or sets the currently focused node.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
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

TreeViewControl Class

TreeViewControl Members

DevExpress.Xpf.Grid Namespace