Cells.ImportDataGridAsString

Cells.ImportDataGridAsString method

Imports a DataGrid into a worksheet. This method doesn’t try to convert text into numeric values.

public int ImportDataGridAsString(DataGrid dataGrid, int firstRow, int firstColumn, bool insertRows)
ParameterTypeDescription
dataGridDataGridThe DataGrid object to be imported.
firstRowInt32The row number of the first cell to import in.
firstColumnInt32The column number of the first cell to import in.
insertRowsBooleanIndicates whether extra rows are added to fit data.

Return Value

Total number of rows imported

See Also