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
100
DataPresenterExcelExporter on a separate thread
posted

Hi,

I am using a DataPresenterExcelExporter to export xamDataGrid to excel file and it takes sever seconds. Is it possible to run this on a separate thread?

Thanks

Naveen

 

Parents
No Data
Reply
  • 138253
    Suggested Answer
    Offline posted

    Hello Naveen,

    Thank you for your post. I have been looking through it and I found out that there is such possibility, to run an exporter on a separate thread. To achieve this, first, you have to create a new thread and the method that it runs should take an object parameter with the data source of your xamDataGrid. Second, inside the method a new XamDataGrid object should take that data source as ObservableCollection and then the exporter can export the new XamDataGrid. I also attached a sample project which demonstrates how this works.

    If you have any further questions on this matter do not hesitate to ask.

    ExcelExporterOnSeparateThread.zip
Children
No Data