PivotGridControl.CustomExportHeader Event
Enables you to render different content for individual field headers in a printed or exported document, if the control is exported in the WYSIWYG mode.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.XtraPivotGrid.v24.2.dll
NuGet Package: DevExpress.Win.PivotGrid
#Declaration
public event EventHandler<CustomExportHeaderEventArgs> CustomExportHeader
#Event Data
The CustomExportHeader event's data class is CustomExportHeaderEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Appearance | Gets or sets the appearance object used to paint the current header. |
Apply |
Specifies whether to apply the appearance settings to a brick.
Inherited from Custom |
Brick |
Provides access to the brick that represents the contents and appearance of a cell, when it is printed or exported.
Inherited from Custom |
Caption |
Gets the processed field caption.
Inherited from Custom |
Field |
Gets the processed field.
Inherited from Custom |
Rect |
Defines the size and location of the printed or exported cell.
Inherited from Custom |
#Remarks
The CustomExportHeader event is raised for each field when the PivotGrid is being exported. You can handle this event to change the field header appearance and contents in a printed document.
Use the CustomExportHeaderEventArgs.Appearance property to specify the appearance of the field header such as background and foreground colors, font settings, etc.
Use the event parameter CustomExportHeaderEventArgsBase<T>.Field property to obtain the field header that needs to be customized. You can use the CustomExportHeaderEventArgsBase<T>.Caption property to identify the field header by its caption.
Note
The Custom