Click or drag to resize

imbDataTableExtensionsshiftColumnNames Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Shifts the column names: adds prefix in front of each column name

Namespace:  imbSCI.DataComplex.extensions.data.formats
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
public static void shiftColumnNames(
	this DataTable table,
	string prefix = "Old_"
)
Request Example View Source

Parameters

table
Type: System.DataDataTable
The table.
prefix (Optional)
Type: SystemString
The prefix.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataTable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also