Programmer's Guide > Interfaces > TableSet interface > insertGrid method
  
insertGrid method
Inserts a new TableGrid into the TableSet.
insertGrid(contents [, refGrid] )
Parameters
TableRectanglecontents
The contents of this rectangle is copied into the new grid.
TableGridrefGrid
[optional] The TableGrid before which the new one should be inserted. If this is null, the new grid is inserted at the end of the TableSet.
Returns
TableGrid. The TableGrid added to the set.
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.