Click or drag to resize

EditCommandsPasteFromTableRowsToSelectedRows Method

Pastes data from a table (usually deserialized table from the clipboard) into a worksheet, which has currently selected rows. The number of selected rows has to match the number of rows 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 PasteFromTableRowsToSelectedRows(
	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 the 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 column type does not match the corresponding source column type. The columns to paste into do not change their name, kind or group number. Property columns in the source table are pasted into the destination table.
See Also