We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataTemplate & Export to Excel

Thread ID:

Created:

Updated:

Platform:

Replies:

91868 Dec 7,2009 06:39 PM UTC Dec 8,2009 05:27 AM UTC WPF 1
loading
Tags: GridControl
Puthirak OM
Asked On December 7, 2009 06:39 PM UTC

Hi,

I'm using DataTemplateCellModel and Model_QueryCellInfo event to customize my data in the wpf datagrid, exactly like the DataTemplateCell_2008 sample.

When i tried to export the grid to an Excel file.
The numeric values of the DataTemplate cells are not exported.

I guess the problem is linked to the fact that i don't see how the
grid get the "text value" of the DataTemplate cell.

I've join the DataTemplateCell_2008 sample modified.

Thanks,
P.OM
Reportive SA




DataTemplateCell_ExportToExcel_d3dbb09f.zip

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On December 8, 2009 05:27 AM UTC

Hi Puthirak,

Thanks for the sample. DataTemplates are special cases that relates only to the UI, the Excel export functionality is based on the ItemsSource that is set. Also, It won't be possible to pull the values from the DataTemplates since that only applies all the bindings when the visual gets loaded.

Please let me know if you need any more details.

Thanks,
Fahad

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;