Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

public virtual void SelectCellAnchorRange(
    GridCell start,
    GridCell end
)

#Parameters

Name Type Description
start GridCell

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.

SelectCellAnchorRange

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