Version

ExportAsync(UltraGrid,String,GridExportFileFormat) Method

Exports the specified grid to the specified file asynchronously.
Syntax
'Declaration
 
Public Overloads Sub ExportAsync( _
   ByVal grid As Infragistics.Win.UltraWinGrid.UltraGrid, _
   ByVal fileName As String, _
   ByVal fileFormat As GridExportFileFormat _
) 
public void ExportAsync( 
   Infragistics.Win.UltraWinGrid.UltraGrid grid,
   string fileName,
   GridExportFileFormat fileFormat
)

Parameters

grid
The Infragistics.Win.UltraWinGrid.UltraGrid control to export.
fileName
Name and path of resulting file.
fileFormat
The file format of the report.
Exceptions
Remarks

The ExportAsync method exports the UltraWinGrid to a document asynchronously, unlike the Export method which is synchronous. This is acheived using timers and is not a multi-threaded operation. You should not attempt to access the exporter Workbook, Worksheet, or file until the operation export is complete. You can determine when the process has ending by trapping the EndExport event. During the asynchronous export process, the UltraWinGrid will disable the user's ability to add, remove, delete, edit, filter, sort, or otherwise modify the state of the data during the export process. It is strongly advised that you make sure that the grid's DataSource is not modified during the asynchronous export process. If the data is modifed during the asynchonous export process, the modified data may or may not be exported in it's new state, or (more likely) the export process may be terminated entirely. Also note that you may not perform more than one export operation at a time on the same UltraWinGrid or using the same UltraGridDocumentExporter, either synchronously or asynchronous. Attempting to do so will result in an System.InvalidOperationException.

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