AddColumn Method

Add a column to a datatable.

Syntax

Sub AddColumn(tableName, colName, colDataType, setDefaultValue)

Parameters

tableName

Type: String

The name of the datatable


colName

Type: String

The name of the column to add


colDataType

Type: VSColumnDataType

The data type of the column to add


setDefaultValue

Type: Boolean

Indicates whether or not to set the default value for this column


Return Value


None

Examples

IronPython

#Add a column to a datatable



C#

//Add a column to a datatable


Remarks