Click or drag to resize

DataTableReportToolsAddRowNameColumn Method

imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Adds the row title column as the first from left

Namespace:  imbSCI.DataComplex.tables.extensions
Assembly:  imbSCI.DataComplex (in imbSCI.DataComplex.dll) Version: 0.3.70.
Syntax
C#
public static DataColumn AddRowNameColumn(
	this DataTable dt,
	string columnTitle = "----",
	bool setAsFirst = true
)
Request Example View Source

Parameters

dt
Type: System.DataDataTable
The dt.
columnTitle (Optional)
Type: SystemString
The column title.
setAsFirst (Optional)
Type: SystemBoolean

Return Value

Type: DataColumn

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