TableView.SelectCell(Int32, GridColumn) Method

Selects the cell.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v20.1.dll


public void SelectCell(
    int rowHandle,
    GridColumn column
Public Sub SelectCell(
    rowHandle As Integer,
    column As GridColumn


Name Type Description
rowHandle Int32

An integer value that specifies the handle of the row where the cell is located.

column GridColumn

A GridColumn object that represents the column which contains the cell.


Use the SelectCell method to select a cell, adding it to the existing selection (if any). A cell is located at the intersection of the specified row and column.

The SelectCell method does nothing if the DataViewBase.NavigationStyle property isn't set to GridViewNavigationStyle.Cell and/or the TableView.MultiSelectMode property isn't set to TableViewSelectMode.Cell.

To select multiple cells, use the TableView.SelectCells method.

To learn more on multi-cell selection, see Multiple Cell Selection.

See Also