'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. |
WordDocumentWriter | Returns a reference to the WordDocumentWriter which is writing the grid into the destination. |
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.
This event is fired before all other events when the Export(UltraGrid,String) 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