aspnet-403941-components-grid-view-concepts-export-export-modes.md
The ASPxGridView control can export data in DataAware and WYSIWYG (What You See Is What You Get) modes.
You can specify the export mode at design time (using the ExcelExportMode property) or send the ExportType parameter to an export method at runtime.
<dx:ASPxGridView ID="grid" runat="server" DataSourceID="CategoriesDataSource" KeyFieldName="CategoryID">
<SettingsExport ExcelExportMode="WYSIWYG" />
<%--...--%>
ASPxGridView1.ExportXlsxToResponse(new XlsxExportOptionsEx { ExportType = ExportType.WYSIWYG });
ASPxGridView1.ExportXlsxToResponse(New XlsxExportOptionsEx With {
.ExportType = ExportType.WYSIWYG
})
Supported formats: XLS and XLSX.
This mode maintains the following data shaping settings in the exported document:
Run Demo: Grid - Excel Data Aware Export
Supported formats: PDF, RTF, CSV, XLS, XLSX, and DOCX.
This mode exports GridView data as plain text. The table formatting (such as grouping) is lost and summaries are converted to strings.
Run Demo: Grid - Exporting to Different Formats