TableView.SelectCells(Int32, GridColumn, Int32, GridColumn) Method
Selects multiple cells.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v14.2.dll
#Declaration
public void SelectCells(
int startRowHandle,
GridColumn startColumn,
int endRowHandle,
GridColumn endColumn
)
#Parameters
Name | Type | Description |
---|---|---|
start |
Int32 | An integer value that specifies the handle of the row containing the cell that identifies the starting point of the selection. |
start |
Grid |
A Grid |
end |
Int32 | An integer value that specifies the handle of the row containing the cell that identifies the end point of the selection. |
end |
Grid |
A Grid |
#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 DataViewBase.NavigationStyle property isn't set to GridViewNavigationStyle.Cell and/or the TableView.MultiSelectMode property isn't set to TableViewSelectMode.Cell.
To select a single cell, use the TableView.SelectCell method.
To learn more on multi-cell selection, see Multiple Cell Selection.