Skip to main content
A newer version of this page is available. .

DataControlBase.GetSelectedCells() Method

Returns the selected data cells.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.2.dll

Declaration

public IList<GridCell> GetSelectedCells()

Returns

Type Description
IList<GridCell>

The list of GridCell objects that contain cell coordinates (row and column).

Remarks

If multiple cell selection is disabled or there aren’t any selected cells, the GetSelectedCells method returns an empty list. To enable block selection, set the DataControlBase.NavigationStyle property to GridControlNavigationStyle.Cell and set the DataControlBase.SelectionMode property to MultiSelectMode.Cell.

See Also