Skip to main content

deleteRow()

Description

Removes a row from the spreadsheet

info

The method finds the specified cell, selects it, removes the row where the cell is located and moves the row below to its position.

Usage

deleteRow(cell: string): void;

Parameters

  • cell - (required) the id of a cell that contains the id of a row that should be deleted

Example

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

// removes the second row
spreadsheet.deleteRow("G2");

Related articles: Work with Spreadsheet