Click or drag to resize

TransposingTranspose Method

Transposes the table, that is, exchanges columns and rows. This can only work if all columns in the transposed range have the same type.

Namespace: Altaxo.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.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 Thrown if srcTable or destTable is .
ArgumentExceptionThrown if srcTable and destTable reference the same table instance.
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