Cells.ImportDataGrid

ImportDataGrid(DataGrid, int, int, bool)

Imports a DataGrid into a worksheet.

public int ImportDataGrid(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


ImportDataGrid(DataGrid, int, int, int, int, bool)

Imports a DataGrid into a worksheet.

public int ImportDataGrid(DataGrid dataGrid, int firstRow, int firstColumn, int totalRows, 
    int totalColumns, 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.
totalRowsInt32Number of rows to be imported.
totalColumnsInt32Number of columns to be imported.
insertRowsBooleanIndicates whether extra rows are added to fit data.

Return Value

Total number of rows imported

See Also


ImportDataGrid(DataGrid, int, int, int, int, bool, bool)

Imports a DataGrid into a worksheet.

public int ImportDataGrid(DataGrid dataGrid, int firstRow, int firstColumn, int totalRows, 
    int totalColumns, bool insertRows, bool importStyle)
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.
totalRowsInt32Number of rows to be imported.
totalColumnsInt32Number of columns to be imported.
insertRowsBooleanIndicates whether extra rows are added to fit data.
importStyleBooleanIndicates whether importing the cell style.

Return Value

Total number of rows imported

See Also