Grid View Data Export
The ASP.NET MVC GridView extension allows users to export its data to a file or stream in CSV, DOCX, PDF, RTF, XLS, and XLSX format.
This section contains the following topics:
- Built-in Exporting - describes how to export GridView data using built-in toolbar commands, client-side and server-side API.
- Custom Exporting - describes exporting the grid data using the GridViewExtension‘s static export methods.
Note
DevExpress controls require the DevExpress.RichEdit.v24.2.Export.dll library to export their content to DOCX or RTF format.
The GridView extension does not support exporting in custom binding mode.
GitHub Examples
- How to hide and add columns in an exported document
- How to export a colored grid in Data Aware export mode
- How to export a colored grid in WYSIWYG export mode
- How to use the BeforeExport event to filter the exported columns
- How to export grid data to different formats
- How to export multiple grids into a single print document