Skip to main content
A newer version of this page is available. .

GridView.SelectCell(GridCell) Method

Selects the specified cell.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public void SelectCell(
    GridCell cell
)

Parameters

Name Type Description
cell GridCell

A GridCell object which represents the grid cell.

Remarks

Use the SelectCell method to select individual cells.

The SelectCell method does nothing if multiple cell selection (block selection) is disabled. To ensure that block selection is allowed use the GridView.IsCellSelect property. To unselect a cell use the GridView.UnselectCell method.

After the selection has been changed, the ColumnView.SelectionChanged event is raised.

See Also