GemBox.Spreadsheet

ExcelWorksheet.InsertDataTable Method (DataTable, Int32, Int32, Boolean)

Inserts a DataTable at the specified row and column in the current worksheet.

public int InsertDataTable(
   DataTable dataTable,
   int startRow,
   int startColumn,
   bool columnHeaders
);

Parameters

dataTable
Source DataTable.
startRow
Index of the start row.
startColumn
Index of the start column.
columnHeaders
True to insert column names above data.

Return Value

Number of inserted rows.

See Also

ExcelWorksheet Class | GemBox.Spreadsheet Namespace | ExcelWorksheet.InsertDataTable Overload List