GridView.GetSelectedCells() Method

Returns the selected cells.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public virtual GridCell[] GetSelectedCells()
Public Overridable Function GetSelectedCells As GridCell()

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