Click or drag to resize

CellsImportDataGridAsString Method

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

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 20.9.0.0 (20.9)
Syntax
public int ImportDataGridAsString(
	DataGrid dataGrid,
	int firstRow,
	int firstColumn,
	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.
insertRows
Type: SystemBoolean
Indicates whether extra rows are added to fit data.

Return Value

Type: Int32
Total number of rows imported
See Also