[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.DataImportResult

DataImportResult Class

Contains information about an imported range.

A DataImportResult is returned by ImportData(IEnumerable, DataImportOptions) and ImportData(DataTable, DataImportOptions). It describes the size of the imported data at the target location, including how many rows and columns were imported.

Inheritance
DataImportResult
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class DataImportResult
Public Class DataImportResult
Examples
object[,] values = { { "Name", "Score" }, { "Alice", 100 } };
DataImportResult result = worksheet.Range["A1"].ImportData(values);
int rowsImported = result.RowsImported;
int columnsImported = result.ColumnsImported;

Properties

Name Description
ColumnsImported

How many columns were imported to the specified location.

RowsImported

How many rows were imported to the specified location.