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
280
Cancelling export method from UltraGridExcelExporter
posted

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

 

Wolfgang Roth
Entwicklung

Tel:  +49(0) 7364 - 96990 - 26
Fax: +49(0) 7364 - 96990 - 48

E-Mail: wolfgang.roth@est-technologie.de
Web page: http://www.est-technologie.de
EST Elektronische Schraub- +
Steuerungstechnologie GmbH & Co. KG
Heidenheimer Straße 47
73447 Oberkochen, Deutschland
Kommanditgesellschaft: Amtsgericht Ulm HRA 500928
persönlich haftende Gesellschafterin:
EST Elektronische Schraub- + Steuerungstechnologie
Verwaltungs GmbH, Oberkochen
Amtsgericht Ulm HRB 501172
Geschäftsführer: Stefan Nuding, Emil Schmid
Ein Unternehmen der Schmid-Gruppe
-->Ein Unternehmen der SCHMID-Gruppe --> 
Diese E-Mail kann vertrauliche und/oder rechtlich geschützte Informationen enthalten. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte den Absender und vernichten diese Mail. Das unerlaubte kopieren, sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This message is intended for the individual or entity named above. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others; also please notify the sender by replying to this message, and delete it from your system.
 

 

  • 469350
    Verified Answer
    Offline posted

    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.