Hello,
Have a gridview that I want to export to excel using the radcontrol for winforms 2010 q2 sp1.
I’m using the ExportToExcelML class.
The problem is that in excel the time is added like for example 2001-05-09T00:00:00.000
On the gridview column I’m setting the export format string.
GridViewDataColumn gridviewColumn;
PropertyInfo propertie = Helper.GetProductieMonitorPropertie(kolom);
if (propertie.PropertyType == typeof(DateTime))
{
gridviewColumn = new GridViewDateTimeColumn();
gridviewColumn.ExcelExportFormatString = "dd.MM.yyyy";
gridviewColumn.ExcelExportType = DisplayFormatType.Text;
gridviewColumn.FormatString = "{0:d}";
}
Any suggestion?
Kind regards,
Tim van Rooijen