Advanced grid control.
Creates a grid as a child of element. If autoNumber is true, than the Grid will automatically add the first, auto-numbered column.
Adds a row. If index is present, it specifies at which index the new row should be inserted. Data is an array of either values or objects. If objects are used, they should contain:
Creates a header row. Data is an array of either values or objects. If objects are used, they should contain:
Adds a new header cell. If index is present, it specifies at which index the new cell should be inserted.
Data are in the same format as in createHeader
.
Converts an existing table into a grid.
Adds one cell to one row. If index is present, it specifies at which index new cell should be inserted.
Data are in the same format as in createRow
. This method should be called as grid.rows[i].addCell()
.
Removes one column from the grid.
Clears the grid (preserves header).