Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeListControlBase.GetSelectedNodes() Method

Returns selected nodes.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public TreeListNode[] GetSelectedNodes()

#Returns

Type Description
TreeListNode[]

An array of nodes currently selected within a View.

#Remarks

The GetSelectedNodes method returns an array of TreeListNode objects that are the selected nodes. To obtain a collection of data objects which correspond to selected nodes, use the DataControlBase.SelectedItems property. The DataControlBase.GetSelectedRowHandles method returns handles of the selected nodes.

Refer to the Row Selection topic for more information.

See Also