'Declaration Public Event ExportStarted As EventHandler(Of ExportStartedEventArgs)
public event EventHandler<ExportStartedEventArgs> ExportStarted
The event handler receives an argument of type ExportStartedEventArgs containing data related to this event. The following ExportStartedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Layout | A cloned Infragistics.Win.UltraWinGrid.UltraGridLayout of the grid being exported. |
Rows | The root Infragistics.Win.UltraWinGrid.RowsCollection of the grid being exported. |
Section | The Infragistics.Documents.Reports.Report.Section.ISection in the report to which the grid will be exported. |
The ExportStartedEventArgs.Layout is a cloned Infragistics.Win.UltraWinGrid.UltraGridLayout of the grid being exported. Since the layout is cloned, you can safely modify the layout for exporting without affecting the on-screen grid.
ExportStartedEventArgs.Rows is the root Infragistics.Win.UltraWinGrid.RowsCollection of the grid being exported.
ExportStartedEventArgs.Section is the the Infragistics.Documents.Reports.Report.Section.ISection in the report into which the grid will be exported. The section PageSize will automatically be set during the export process and should not be modified in this event.
This event is fired before all other events when the Export(UltraGrid,String,GridExportFileFormat) method is called. You can use it to do any preprocessing before exporting process starts. For example, you can set properties on the cloned layout.
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