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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DataTemplate & Export to Excel

Thread ID:





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


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.

Reportive SA


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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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