Back to Devexpress

GridView.SelectCell(GridCell) Method

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

latest2.5 KB
Original Source

GridView.SelectCell(GridCell) Method

Selects the specified cell.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public void SelectCell(
    GridCell cell
)
vb
Public Sub SelectCell(
    cell As GridCell
)

Parameters

NameTypeDescription
cellGridCell

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

SelectCells

IsCellSelect

IsCellSelected

UnselectCell

SelectionChanged

Multiple Row and Cell Selection

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace