Skip to main content

DataTableExporter(DataTable, CellRange, Boolean) Constructor

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

Namespace: DevExpress.Spreadsheet.Export

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

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