Version

ExportAsync(UltraGrid,Workbook,Int32,Int32) Method

Exports the passed in ultragrid to the specified workbook in the active worksheet asynchronously starting at the specified row and column. If there are no worksheets in workbook, new worksheet is created. It returns the passed in workbook.
Syntax
'Declaration
 
Public Overloads Sub ExportAsync( _
   ByVal grid As Infragistics.Win.UltraWinGrid.UltraGrid, _
   ByVal workbook As Infragistics.Documents.Excel.Workbook, _
   ByVal startRow As Integer, _
   ByVal startColumn As Integer _
) 
public void ExportAsync( 
   Infragistics.Win.UltraWinGrid.UltraGrid grid,
   Infragistics.Documents.Excel.Workbook workbook,
   int startRow,
   int startColumn
)

Parameters

grid
Grid to export.
workbook
Destination Infragistics.Documents.Excel.Workbook.
startRow
Start row for exported data (zero based).
startColumn
Start column for exported data (zero based).
Remarks

The ExportAsync method exports the UltraWinGrid to Excel 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 UltraGridExcelExporter, 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