The requested page is not available for the requested platform. You are viewing the content for Default platform.

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

Selects multiple cells.

Namespace: DevExpress.UI.Xaml.Grid

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

Declaration

public void SelectCells(
    int startRowHandle,
    GridColumnBase startColumn,
    int endRowHandle,
    GridColumnBase endColumn
)
Public Sub SelectCells(
    startRowHandle As Integer,
    startColumn As GridColumnBase,
    endRowHandle As Integer,
    endColumn As GridColumnBase
)

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