Skip to main content
All docs
V24.1

ASPxClientVerticalGridBatchEditApi.SetFocusedCellByKey(key, rowIndex) Method

Focuses the specified cell.

Declaration

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

Parameters

Name Type Description
key any

The record key.

rowIndex number

The index of the row.

Remarks

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

<dx:ASPxVerticalGrid ID="VGrid" ClientInstanceName="clientVGrid" ...>
      ...
</dx:ASPxVerticalGrid>
clientVGrid.batchEditApi.SetFocusedCellByKey(record_key,2);
See Also