Hi,
When I tried to export data to excel, I'm unable to get date format. My date format is based upon my session settings. Date is displayed in grid as 10.01.2013 12.25.44. I want the same should be exported in excel. I'm using below code
Thanks,
Kumar
When I tried to export data to excel, I'm unable to get date format. My date format is based upon my session settings. Date is displayed in grid as 10.01.2013 12.25.44. I want the same should be exported in excel. I'm using below code
protected void RadGrid1_ExcelMLExportStylesCreated(object source, GridExportExcelMLStyleCreatedArgs e) { StyleElement dateStyle = new StyleElement("Date"); dateStyle.NumberFormat.FormatType = NumberFormatType.Fixed; dateStyle.NumberFormat.Attributes["ss:Format"] = "d"; e.Styles.Add(dateStyle); } }Thanks,
Kumar