This is a migrated thread and some comments may be shown as answers.

Grid exporrting formatting and alignment

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Amarnath
Top achievements
Rank 1
Amarnath asked on 28 Dec 2010, 09:42 AM
Hi there,

Can any one help me, how to format data exporting from grid to Excel, PDF and CSV?
When I export the grid its alignment looks very badly.

And i am not getting the ExportToExcelML() in my code behind.

Regards,

Amarnath

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Dec 2010, 10:02 AM
Hello Amarnath,


The following links will be of help, in formatting the exported file.
Word/Excel export (HTML-based)

ExcelML is Sub-format of Excel, that means you can call "ExportToExcel()" method to export to ExcelML, and you need to set the Excel.Format properly.
C#:
RadGrid1.ExportSettings.Excel.Format = GridExcelExportFormat.ExcelML;
RadGrid1.MasterTableView.ExportToExcel();

 

-Shinu.
Tags
Grid
Asked by
Amarnath
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or