Sorry if somebody has already replied to my question but is there some way out through which I can export XamDatagrid's data to excel?
Thanks for support.
KSomi
Hi KSomi,
I would recommend the solution, suggested by Andrew Flick - Exporting the XamDataGrid to Excel
<http://blogs.infragistics.com/blogs/andrew_flick/archive/2008/10/22/exporting-the-xamdatagrid-to-excel.aspx >
The used approach let you export your xamDataGrid to Excel with only a couple lines of code.
xamDataGridExcelExporter.xamDataGridExcelExporter xamDataGridExcelExporter1 = new xamDataGridExcelExporter.xamDataGridExcelExporter();xamDataGridExcelExporter1.Export(this.xamDataGrid1, @"C:\Excel\ExportFile.xls");
The solution is demonstrated through a working sample application.
Best Regards,Yanko