Hello,
we are using a UltraGridExcelExporter component to export a grid to an excel worksheet. It works quite fine, but if we need to export a large number of rows it takes its time. Now we want to implement a simple logic to export only selected rows of the grid, so we used the rowexporting event. This should also work fine to skip the non selected rows of the grid.
But what should we do, if the user wants to cancel the complete exporting? I suppose, we could use the EndExportEventArgs.Cancelled property to know when it was cancelled, but how do i set this property?
Greetings
You can cancel the exporting during the InitializeRow event of the UltraGridExcelExporter. There are properties on the event args to allow you to skip child rows, skip individual rows, and cancel. So this is probably a better place to hide the non-selected rows, too.