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