DataControlBase.GetSelectedRowHandles() Method
Returns the handles of the selected rows.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Returns
Type | Description |
---|---|
Int32[] | An array of integer values that are handles of the selected rows. An empty array if no rows are selected. |
Remarks
You can select multiple rows if the DataControlBase.SelectionMode property is set to Row
or MultipleRow
. 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/nodes.
When multiple selection is disabled, the GetSelectedRowHandles
method returns an array that contains a single element (the focused row handle). You can also use the DataViewBase.FocusedRowHandle property to obtain this value.