Click or drag to resize
DataHelperEnsureColumn Method
Ensures specified column.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static int EnsureColumn(
	DataTable dt,
	string columnName,
	Type columnType
)

Parameters

dt
Type: System.DataDataTable
Data table
columnName
Type: SystemString
Column name
columnType
Type: SystemType
Column type

Return Value

Type: Int32
See Also