Skip to main content

DataControlBase.SelectCells(Int32, GridColumnBase, Int32, GridColumnBase) Method

Selects multiple cells.

Namespace: DevExpress.UI.Xaml.Grid

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

NuGet Package: DevExpress.Uwp.Controls

Declaration

public void SelectCells(
    int startRowHandle,
    GridColumnBase startColumn,
    int endRowHandle,
    GridColumnBase endColumn
)

Parameters

Name Type Description
startRowHandle Int32

An integer value that specifies the handle of the row containing the cell that identifies the starting point of the selection.

startColumn GridColumnBase

A GridColumnBase object that represents the column containing the cell that identifies the starting point of the selection.

endRowHandle Int32

An integer value that specifies the handle of the row containing the cell that identifies the end point of the selection.

endColumn GridColumnBase

A GridColumnBase object that represents the column containing the cell that identifies the ending point of the selection.

Remarks

The SelectCells method allows you to select multiple cells, adding them to the existing selection (if any). In this case, the method’s parameters determine the block’s starting and ending edges, respectively.

The SelectCells method does nothing if the DataControlBase.NavigationStyle property isn’t set to GridControlNavigationStyle.Cell and/or the DataControlBase.SelectionMode property isn’t set to MultiSelectMode.Cell.

To select a single cell, use the DataControlBase.SelectCell method.

See Also