I need to export a same Infragistics DataGrid twice and update progress bar during the export. So i'm starting first export like this
excelExporter.ExportAsync(_xamDataGrid, "excelFile", WorkbookFormat.Excel97To2003);
the problem is that I cannot start the second export for this grid until the first one is finished.
Is there any way to wait till the end of this async operation before starting the second one?
Handling the ExportEnded
event does not solves the problem, as here excelExporter
has the property IsExporting=true
.
excelExporter
is of type DataPresenterExcelExporter
.