| MergeTablesMergeTable(DataTable, DataColumn, DataTable, DataColumn, IAscendingIntegerCollection, Boolean) Method | 
            Merges two tables by corresponding x-columns.
            
Namespace: Altaxo.DataAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3261.0 (4.8.3261.0)
 Syntax
Syntaxpublic static DataTable MergeTable(
	this DataTable masterTable,
	DataColumn masterXColumn,
	DataTable slaveTable,
	DataColumn slaveXColumn,
	IAscendingIntegerCollection columnsToMerge,
	bool createNewTable
)
Parameters
- masterTable  DataTable
- Master table. Values from the slave table will be recalculated to fit the x-values of the master table.
- masterXColumn  DataColumn
- The master x-column of the master table.
- slaveTable  DataTable
- The table providing the data for merging into the master table.
- slaveXColumn  DataColumn
- The x column of the slave table.
- columnsToMerge  IAscendingIntegerCollection
- Indices of that columns of the slave table that should be merged into the master table.
- createNewTable  Boolean
- If true, a new table is created as a clone of the master table. The data from the slave table are then merged into that clone. If false,
            the data are directly merged into the master table.
Return Value
DataTableIf 
createNewTable is true, then the newly created table. If false, then the provided master table where the data are merge to.
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
See Also