Click or drag to resize
DataHelperCopyColumnValues Method
Copies column values from source column to target column.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static void CopyColumnValues(
	DataTable dt,
	string targetColumn,
	string sourceColumn,
	bool copyNullValues = false
)

Parameters

dt
Type: System.DataDataTable
Data table
targetColumn
Type: SystemString
Target column
sourceColumn
Type: SystemString
Source column
copyNullValues (Optional)
Type: SystemBoolean
TRUE if the NULL value can be copied; otherwise, FALSE
See Also