CellsImportDataGrid Method (DataGrid, Int32, Int32, Int32, Int32, Boolean)

Imports a DataGrid into a worksheet.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public int ImportDataGrid(
	DataGrid dataGrid,
	int firstRow,
	int firstColumn,
	int totalRows,
	int totalColumns,
	bool insertRows
)

Parameters

dataGrid
Type: System.Web.UI.WebControlsDataGrid
The DataGrid object to be imported.
firstRow
Type: SystemInt32
The row number of the first cell to import in.
firstColumn
Type: SystemInt32
The column number of the first cell to import in.
totalRows
Type: SystemInt32
Number of rows to be imported.
totalColumns
Type: SystemInt32
Number of columns to be imported.
insertRows
Type: SystemBoolean
Indicates whether extra rows are added to fit data.

Return Value

Type: Int32
Total number of rows imported
See Also