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

DataViewBase.GetSelectedRowHandles() Method

OBSOLETE

Use the GetSelectedRowHandles() method instead

Returns the handles of the selected rows.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

[Obsolete("Use the DataControlBase.GetSelectedRowHandles method instead")]
[Browsable(false)]
public virtual int[] GetSelectedRowHandles()

#Returns

Type Description
Int32[]

An array of integer values representing the handles of the selected rows. An empty array if no rows are selected.

#Remarks

Multiple rows can be selected when the DataControlBase.SelectionMode option is set to MultiSelectMode.Row. You can use the GetSelectedRowHandles method to obtain the handles of the selected rows. Also, the DataControlBase.SelectedItems property returns the collection of currently selected rows.

When multiple selection is disabled, the GetSelectedRowHandles method returns an array containing a single element that represents the focused row handle. This value can also be obtained using the DataViewBase.FocusedRowHandle property.

See Also