Version

ExportAsync(UltraGrid,Worksheet,Int32,Int32) Method

Exports the passed in ultragrid to the specified worksheet asynchronously starting at the specified row and column.
Syntax
'Declaration
 
Public Overloads Sub ExportAsync( _
   ByVal grid As Infragistics.Win.UltraWinGrid.UltraGrid, _
   ByVal worksheet As Infragistics.Documents.Excel.Worksheet, _
   ByVal startRow As Integer, _
   ByVal startColumn As Integer _
) 
public void ExportAsync( 
   Infragistics.Win.UltraWinGrid.UltraGrid grid,
   Infragistics.Documents.Excel.Worksheet worksheet,
   int startRow,
   int startColumn
)

Parameters

grid
Grid to export.
worksheet
Destination Infragistics.Documents.Excel.Worksheet.
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