I want to export gridcontrol excell but I have some float values but when I export it it is exporting like text I am using this code:
gridControl1.ExportToXlsx("D:\\Turnover.xls");
after that I searched some and I found something:
GridViewExportLink link;
var provider = new ExportXlsProvider(fileName:@"D:\Trunover.xls");
link = gridView1.CreateExportLink(provider) as GridViewExportLink;
link.ExportCellsAsDisplayText = false;
link.ExportTo(true);
but on link.ExportTo(true); it is erroring mee this:
Additional information: Object reference not set to an instance of an object.