Programmer's Guide > Interfaces > TableGrid interface > addRow method
  
addRow method
Add an empty row to the grid.
addRow( [refRow [, addBefore]] )
Parameters
TableRowrefRow
[optional] The row before or after which the new row is to be inserted. If null the new row is inserted as the last row in the grid. Some attributes of the new row are set from refRow .
booleanaddBefore
[optional] If omitted or false, the new row is added after refRow, if true it is added before it.
Returns
TableRow. The TableRow that was inserted.
Throws
TableException
INVALID_PARAMETER_ERR: Raised if the refRow is not in this grid or if the table model doesn't allow rows to be inserted.