Dear Telerik support,
My datetime columns arebehaving just the same as you can seein your article here
http://docs.telerik.com/devtools/wpf/controls/radgridview/export/how-to/export-datetime
Then i tried the given solution,but although the event is being called and the Format being attributed with the correct format, the solution doesn't not working for me. My datetime columns cells show as #########
Can you please check my code and see if i am missing something?
private void CustomGridview_ElementExportingToDocument(object sender, GridViewElementExportingToDocumentEventArgs e){ if (e.Element == ExportElement.Cell) { var cellExportingArgs = e as GridViewCellExportingEventArgs; var parameters = cellExportingArgs.VisualParameters as GridViewDocumentVisualExportParameters; if (cellExportingArgs.Column.GetType() == typeof(GridViewDataColumn)) { if (((GridViewDataColumn)cellExportingArgs.Column).DataFormatString == "d") { parameters.Style = new CellSelectionStyle() { Format = new CellValueFormat(CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern) }; } if (((GridViewDataColumn)cellExportingArgs.Column).DataFormatString == "g") { parameters.Style = new CellSelectionStyle() { Format = new CellValueFormat(CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern + " " + CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern) }; } } }}Thank you
