GridView.SelectCellAnchorRange(GridCell, GridCell) Method
Selects multiple cells.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
start | Grid |
A Grid |
end | Grid |
A Grid |
#Remarks
If multiple selection is disabled, the SelectCellAnchorRange method does nothing. To allow multiple row (cell) selection set the ColumnViewOptionsSelection.MultiSelect option to true.
The SelectCellAnchorRange method allows multiple cells to be selected if cell block selection is enabled (see GridView.IsCellSelect). In this case, the start and end parameters determine the block’s starting and ending edges, respectively.
If cell block selection is disabled, the SelectCellAnchorRange method selects the specified range of rows. The start and end parameters specify the first and last rows, respectively.