Programmer's Guide > Interfaces > TableObject interface > renameColumns method
  
renameColumns method
Updates the colname attribute of every colspec tag in a table. This is applied to the TableGrid containing the table object or all TableGrids in the TableSet or TableTilePlex as appropriate.
renameColumns(pattern, leftColspec, increment )
Parameters
Stringpattern
A string containing the characters %d specifying the root column name. (For example, "column%d".) %d is replaced with 0 for the left-most column, 1 for the next left-most, and so on.
unsigned longleftColspec
The number to be used for the left-most colspec tag in the table.
unsigned longincrement
The increment to be used during the renaming process.
Returns
void
Throws
TableException
OPERATION_FAILED_ERR: Raised if the table model doesn't support this operation or if the operation fails for some other reason.