Deleting Rows and Columns

Deleting rows

To delete a row (or rows) from a table you need to specify a starting row (the first row you wish to delete) and indicate the number of rows to be included for deletion.

If a cell lies entirely within the region specified for deletion, it is removed. If a cell starts in the region but extends past the region (i.e. is a part of a merged cell), the cell is also deleted. However, in this instance a new cell is created to fill the portion of the old cell that lay outside the region. If a cell extends into the region, then only that part of the cell is removed.

To delete a row (or rows) use:

void deleteRows(int row, int count)

Deleting columns

To delete a column (or columns) from a table you need to specify a starting column (the first column you wish to delete) and indicate the number of columns to be included for deletion. Cells that lie partially in the region specified for deletion are treated in the same way as described above under 'Deleting Rows'.

To delete a column (or columns) use:

void deleteColumns(int column, int count)

Page generated: 2008-01-18 02:53:28 GMT TonicPoint Builder Developer's Guide -- Version 2.3