Version

HeaderCellExporting Event

Occurs before a header cell is exported to a report.
Syntax
'Declaration
 
Public Event HeaderCellExporting As EventHandler(Of HeaderCellExportingEventArgs)
public event EventHandler<HeaderCellExportingEventArgs> HeaderCellExporting
Event Data

The event handler receives an argument of type HeaderCellExportingEventArgs containing data related to this event. The following HeaderCellExportingEventArgs properties provide information specific to this event.

PropertyDescription
ExportValue (Inherited from Infragistics.Win.UltraWinGrid.WordWriter.TableCellExportingEventArgs)Returns or sets the value that will be exported to the report.
GridHeader Returns the Infragistics.Win.UltraWinGrid.HeaderBase being exported.
HeaderType Indicates what type of header is being exported: a band header, group, or column header.
WordTableCellSettings (Inherited from Infragistics.Win.UltraWinGrid.WordWriter.TableCellExportingEventArgs)Returns or sets properties of the table cell in the Word document such as BackColor, Font, and VerticalAlignment;
Remarks

HeaderCellExportingEventArgs.GridHeader returns the Infragistics.Win.UltraWinGrid.HeaderBase being exported.

HeaderCellExportingEventArgs.HeaderType indicates what type of header is being exported: a band header, group, or column header.

Use the System.ComponentModel.CancelEventArgs.Cancel argument to cancel the exporting of the header cell.

Using these event arguments, it is possible to override the exporting of a header cell and provide a custom export. Typically, this would be done by setting Cancel to True, and then adding content to the ColumnHeaderContainer, GroupHeaderContainer, or BandHeaderContainer (depending on the HeaderType).

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also