Skip to main content
All docs
V24.2

ASPxClientGridViewBatchEditApi.SetFocusedCellByKey(key, columnIndex) Method

Focuses the specified cell.

Declaration

SetFocusedCellByKey(
    key: any,
    columnIndex: number
): void

Parameters

Name Type Description
key any

The row key.

columnIndex number

The index of the column.

Remarks

Use the SetFocusedCellByKey, SetFocusedCell(rowVisibleIndex, columnIndex), and GetFocusedCell methods to control the cell focus on the client side.

<dx:ASPxGridView ID="GridView" ClientInstanceName="clientGrid" ...>
      ...
</dx:ASPxGridView>
clientGrid.batchEditApi.SetFocusedCell(row_key,2);
See Also