GridView.GetSelectedCells() Method
Returns the selected cells.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v22.2.dll
NuGet Package: DevExpress.Win.Grid
Declaration
Returns
Type | Description |
---|---|
GridCell[] | An array of GridCell objects that represent selected cells. |
Remarks
If block selection is disabled or there aren’t any selected cells, the GetSelectedCells method returns an empty array.
Use the ColumnViewOptionsSelection.MultiSelect and GridOptionsSelection.MultiSelectMode properties to enable block selection.
See Also