Working with Rows and Columns |
|
To insert a new column or row:
GRID ADD ctl, col, row
To delete a column or row:
GRID DELETE ctl, col, row
To clear a cell or range of cells:
GRID CLEAR ctl, col, row, #cols, #rows
The GRID ADD directive can be used to add new rows/columns to the grid. Either a row or column or both must be given (non-zero).
Example:
To insert a new column 3:
GRID ADD ctl, 3, 0
The GRID DELETE directive can be used to remove columns and/or rows. If the row number is zero, only the column will be deleted and vice-versa. If both row and column are zero, then all cells will be deleted.
The GRID CLEAR directive can be used to reset a range of cells to the default (empty) setting.