A newer version of this page is available. Switch to the current version.

DataViewBase.GetSelectedRowHandles() Method

Obsolete. Returns the handles of the selected rows.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v19.1.Core.dll


[Obsolete("Use the DataControlBase.GetSelectedRowHandles method instead")]
public virtual int[] GetSelectedRowHandles()
<Obsolete("Use the DataControlBase.GetSelectedRowHandles method instead")>
Public Overridable Function GetSelectedRowHandles As Integer()


Type Description

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


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