Skip to main content

setFocusedCell()

Description

Sets focus on the specified cell

Usage

setFocusedCell(cell: string): void;

Parameters

  • cell - (required) the id of a cell to set focus on

Example

const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
// config parameters
});
spreadsheet.parse(data);

spreadsheet.selection.setFocusedCell("D4");

Related articles: Work with Spreadsheet