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. Image for the cookie policy date
close icon

DataTemplate & Export to Excel

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

1 Reply

MS Mohamed Suhaib Fahad A. Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon