Skip to main content

DataControlBase.GetSelectedCells() Method

Returns the selected data cells.

Namespace: DevExpress.UI.Xaml.Grid

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

NuGet Package: DevExpress.Uwp.Controls

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