Click or drag to resize

EditCommandsPasteFromTableColumnsToSelectedRows Method

Pastes data columns from the source table (usually deserialized table from the clipboard) into rows of the destination table, which has currently selected rows. The number of selected rows has to match the number of columns of the source table.

Namespace: Altaxo.Worksheet.Commands
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
protected static void PasteFromTableColumnsToSelectedRows(
	IWorksheetController dg,
	DataTable sourcetable
)

Parameters

dg  IWorksheetController
The worksheet to paste into.
sourcetable  DataTable
The table which contains the data to paste into the worksheet.
Remarks
The operation is defined as follows: if there is no column selection, the data are inserted beginning at the first column of the destination table. If there is a column selection, the data are inserted in the selected columns, and then in the columns after the last selected columns. No exception is thrown if a cell type does not match the corresponding source cell type. The columns to paste into do not change their name, kind or group number. Property columns in the source table are not used for this operation.
See Also