Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2732
UltraGridExcelExporter.Export & InitializeRow
posted

Hello,

We have noticed that exporting a WinGrid to Excel by using the UltraGridExcelExporter causes a InitializeRow to be triggered on every row during the initialization phase of the export (this is before the event ExportStarted is triggered).

We have a grid with rather complex functionality being processed in the initializerow, and this causes a long delay in the total export process. We are wondering if this is normal behaviour, or if there is a setting we can set to avoid this ? 

Kind regards,

Michael

PS: version 11.2.20112.1010

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi Michael,

    This is correct behavior. The export process involves cloning the grid rows for exporting, so that you can modify the rows of the export without changing the on-screen rows. So the cloned rows have to be initialized.

    If there is some part of your processing that you do not need to do in the export rows, then you could detect when the row is an export row like so:

    e.Row.Band.Layout.IsExportLayout

     

Reply Children
No Data