Skip to main content

removeSelectedCell()

Description

Removes selection from the specified cell(s)

Usage

removeSelectedCell(cell: string): void;

Parameters

  • cell - (required) the id(s) or a range of selected cell(s)

Example

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

// selecting scattered cells
spreadsheet.selection.setSelectedCell("A1:A9,C2,B4,D6");

// removes selection from the specified cells
spreadsheet.selection.removeSelectedCell("A3:A6,C2");

Change log: Added in v4.2

Related articles: Work with Spreadsheet

Related sample: Spreadsheet. Remove selection