Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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