Click or drag to resize

TransposingTranspose Method

Transpose transpose the table, i.e. exchange columns and rows this can only work if all columns in the table are of the same type

Namespace: Altaxo.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void Transpose(
	this DataTable srcTable,
	DataTableTransposeOptions options,
	DataTable destTable
)

Parameters

srcTable  DataTable
Table to transpose.
options  DataTableTransposeOptions
Options that control the transpose process.
destTable  DataTable
Table in which the transposed table should be stored.

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).
Exceptions
ExceptionCondition
ArgumentNullException
ArgumentException
InvalidOperationExceptionThe data columns to transpose are not of the same type. The first column that has a deviating type is column number + firstDifferentColumnIndex.ToString()
See Also