insertColumns method
Insert one or more columns into the grid.
insertColumns(contents [, refColumn] )
Parameters
TableRectangle contents
The contents of this rectangle is copied into the new columns. This rectangle must be as high as the grid. Its width determines the number of columns inserted.
TableColumn refColumn
[optional] The column before which the new columns are to be inserted. If null the new columns are inserted as the last columns in the grid.
Returns
void
Throws
TableException
INVALID_PARAMETER_ERR: Raised if the refColumn is not in this grid or if the table model doesn't allow a column to be inserted.
这对您有帮助吗?