Skip to main content
A newer version of this page is available. .

PivotXlsxExportOptions Class

Contains Pivot Grid options that define how a document is exported to XLSX format in the data-aware export mode.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v17.2.dll

Declaration

public class PivotXlsxExportOptions :
    PivotXlsxExportOptionsBase

Remarks

To set custom formatting of the exported cells, you can raise the PivotXlsxExportOptions.CustomizeCell event. This event is raised before a data cell is exported to the Excel document. Use the CustomizePivotCellEventArgs.RowType and CustomizePivotCellEventArgs.ColumnType parameters to identify a row and column containing the cell. To specify the cell location in the exported Excel document, use the CustomizePivotCellEventArgs.ExportArea property. To customize the cell format, use the CustomizePivotCellEventArgs.Formatting property.

Note

Set the CustomizePivotCellEventArgs.Handled parameter to true to export cells with custom formatting.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PivotXlsxExportOptions class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also