Click or drag to resize

RowCommandsCopyRowToRowByColumnName Method

Copies one row of a DataColumnCollection to another row in the same or in another DataColumnCollection. The columns in the source collection are mapped to the columns in the destination collection by name; if a column does not exist in the destination collection, this source column is silently ignored and therefore is not copied.

Namespace: Altaxo.Data
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static void CopyRowToRowByColumnName(
	this DataColumnCollection sourceTable,
	int sourceRowIndex,
	IAscendingIntegerCollection selectedSourceDataColumns,
	DataColumnCollection destinationTable,
	int destinationRowIndex
)

Parameters

sourceTable  DataColumnCollection
The source DataColumnCollection.
sourceRowIndex  Int32
Index of the source row.
selectedSourceDataColumns  IAscendingIntegerCollection
The selected source data columns. If this parameter is null, all source columns are selected for copying.
destinationTable  DataColumnCollection
The destination DataColumnCollection.
destinationRowIndex  Int32
Index of the destination row.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DataColumnCollection. 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