Back to Devexpress

GridView.SelectCellAnchorRange(GridCell, GridCell) Method

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-dot-selectcellanchorrange-x28-devexpress-dot-xtragrid-dot-views-dot-base-dot-gridcell-devexpress-dot-xtragrid-dot-views-dot-base-dot-gridcell-x29.md

latest3.2 KB
Original Source

GridView.SelectCellAnchorRange(GridCell, GridCell) Method

Selects multiple cells.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public virtual void SelectCellAnchorRange(
    GridCell start,
    GridCell end
)
vb
Public Overridable Sub SelectCellAnchorRange(
    start As GridCell,
    end As GridCell
)

Parameters

NameTypeDescription
startGridCell

A GridCell object representing the grid cell which identifies the starting point of the selection.

| | end | GridCell |

A GridCell object representing the grid cell which identifies the end point of the selection.

|

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.

See Also

SelectCell

IsCellSelect

UnselectCell

ClearSelection()

SelectionChanged

Multiple Row and Cell Selection

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace