Click or drag to resize

MergeTablesAddDataColumnsWithPropertiesFrom Method

Adds to the destination table selected columns from another table. Additionally, the properties of those columns will be added to the destination table.

Namespace: Altaxo.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void AddDataColumnsWithPropertiesFrom(
	this DataTable destinationTable,
	DataTable tableToAddFrom,
	IAscendingIntegerCollection selectedColumns
)

Parameters

destinationTable  DataTable
Table where the columns should be added to.
tableToAddFrom  DataTable
Source table.
selectedColumns  IAscendingIntegerCollection
Indexes of the columns of the source table that should be added to the destination table.

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