Adds the a new column to the datatable.
Syntax
Smartsite SXML | Copy Code |
---|---|
datatable.columns.add(datatable dataTable, string columnName) datatable.columns.add(datatable dataTable, string columnName, enum dataType) |
Parameters
Name | Data Type | Description |
---|---|---|
dataTable | DataTable | The datatable to which a column will be added. |
columnName | String | The name of the column that will be added. |
dataType | Enum |
The datatype of the column.
Enum values:
|
Return Value
None.