Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

DataTableExporter(DataTable, CellRange, Boolean) Constructor

Initializes a new instance of the DataTableExporter class with the specified settings.

Namespace: DevExpress.Spreadsheet.Export

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll

Declaration

public DataTableExporter(
    DataTable dataTable,
    CellRange range,
    bool rangeHasHeaders
)

Parameters

Name Type Description
dataTable DataTable

A DataTable object that is the table that will be populated with exported data.

range CellRange

A CellRange that is the worksheet cell range containing data for export.

rangeHasHeaders Boolean

true, if the first row in a cell range contains column names instead of data for export; otherwise, false.

Remarks

Use this constructor to instantiate a data exporter.

See Also