Programmer's Guide > Interfaces > TableSet interface > addGrid method
  
addGrid method
Adds an empty grid to the set.
addGrid(columns, rows [, refGrid [, addBefore]])
Parameters
unsigned longcolumns
The number of columns in the new grid.
unsigned longrows
The number of rows in the new grid.
TableGridrefGrid
[optional] The TableGrid before or after which the new one should be inserted. If this is null, the new grid is inserted at the end of the TableSet.
booleanaddBefore
[optional] If omitted or false, the new grid is inserted after refGrid. If it is true, the new grid is added before refGrid.
Returns
TableGrid. The new TableGrid.
Throws
TableException
INVALID_PARAMETER_ERR: Raised if the refGrid is not in this set, or if the table model does not allow grids to be added to a set.