Back to Devexpress

ASPxPivotGridExporter.CustomExportHeader Event

aspnet-devexpress-dot-web-dot-aspxpivotgrid-dot-aspxpivotgridexporter-eddbfccf.md

latest3.7 KB
Original Source

ASPxPivotGridExporter.CustomExportHeader Event

Enables you to render a different content for individual field headers, if the PivotGrid is exported in the WYSIWYG mode.

Namespace : DevExpress.Web.ASPxPivotGrid

Assembly : DevExpress.Web.ASPxPivotGrid.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event EventHandler<WebCustomExportHeaderEventArgs> CustomExportHeader
vb
Public Event CustomExportHeader As EventHandler(Of WebCustomExportHeaderEventArgs)

Event Data

The CustomExportHeader event's data class is WebCustomExportHeaderEventArgs. The following properties provide information specific to this event:

PropertyDescription
AppearanceGets or sets the appearance object used to paint the header currently being exported.
ApplyAppearanceToBrickStyleSpecifies whether to apply the appearance settings to a brick. Inherited from CustomPrintEventArgs.
BrickProvides access to the brick that represents the contents and appearance of a cell, when it is printed or exported. Inherited from CustomPrintEventArgs.
CaptionGets the field header caption.
FieldGets the processed field.
RectDefines the size and location of the printed or exported cell. Inherited from CustomPrintEventArgs.

Remarks

The CustomExportHeader event is raised for each field when the ASPxPivotGrid is exported. You can handle this event to change the field header’s appearance and contents in a printed document.

Note

Field properties cannot be changed in the CustomExportHeader event handler.

Note

The CustomExportHeader event is not in effect during the export in Data-Aware mode. To customize cells in Data-Aware export mode, use the PivotXlsExportOptions.CustomizeCell and PivotXlsxExportOptions.CustomizeCell events.

See Also

CustomExportCell

CustomExportFieldValue

ASPxPivotGridExporter Class

ASPxPivotGridExporter Members

DevExpress.Web.ASPxPivotGrid Namespace