Version

HeaderAreaExported Event

Occurs after header area is exported to Excel.
Syntax
'Declaration
 
Public Event HeaderAreaExported As EventHandler(Of HeaderAreaExportedEventArgs)
public event EventHandler<HeaderAreaExportedEventArgs> HeaderAreaExported
Event Data

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

PropertyDescription
CurrentColumnIndex (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Zero-based index of current exporting column in excel worksheet.
CurrentOutlineLevel (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Current outline level used for grouping.
CurrentRowIndex (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Zero-based index of current exporting row in excel worksheet.
CurrentWorksheet (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Current exporting worksheet.
FieldLayout Returns the layout associated with the header being exported.
Record Returns the first record associated with the header.
Workbook (Inherited from Infragistics.Windows.DataPresenter.ExcelExporter.ExcelExportEventArgs)Exporting workbook.
Remarks

The FieldLayout argument returns a reference the layout object associated with the headers.

The Record argument returns a reference to the first record associated with the headers.

Additionaly this event has Workbook, CurrentWorksheet, CurrentRowIndex, CurrentColumnIndex, CurrentOutlineLevel arguments inherited from ExcelExportEventArgs.

This event is fired after Excel row with header values is processed. Use it to apply any additional formatting to Excel row. If headers span multiple Excel rows, this event is fired only for last header row.

This event is not fired when the labels are displayed with the cells instead of in a separate header area.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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