Change Theme Settings
Change Theme Settings
Show All Themes

Exporting Data

Note: If you export grouped data to RTF, be sure to open the resulting file with an editor that fully supports RTF, including tables. For instance, Microsoft WordPad does not support this feature, and thus the file may appear corrupt.
  • Export to PDF
  • Export to XLS
  • Export to XLSX
  • Export to DOCX
  • Export to RTF
  • Export to CSV
Country Ascending
City Ascending
Company Name 
Unit Price 
ExpandCountry: Argentina (Sum=$8,119.10, Count=34)
ExpandCountry: Austria (Sum=$139,496.63, Count=125)
ExpandCountry: Belgium (Sum=$35,134.98, Count=56)
ExpandCountry: Brazil (Sum=$114,968.48, Count=203)
ExpandCountry: Canada (Sum=$55,334.10, Count=75)
ExpandCountry: Denmark (Sum=$34,782.25, Count=46)
ExpandCountry: Finland (Sum=$19,778.45, Count=54)
ExpandCountry: France (Sum=$85,498.76, Count=184)
ExpandCountry: Germany (Sum=$244,640.63, Count=328)
ExpandCountry: Ireland (Sum=$57,317.39, Count=55)
 Count=2,155  Sum=$1,354,458.59
Page 1 of 3 (21 items)Prev123Next

The MVC Grid View allows you to export its data with ease. Using specific static methods provided at the GridViewExtension class level, the GridView's data can be exported to a file or stream in the following formats:

This demo illustrates how data within the Grid View can be exported to different formats - based on the Grid View's current settings (defined in a single location - within the Controller). These settings are passed to a View containing the grid’s markup - 'View(partial)' and they are also used by export methods.

See Also: