Grid View - Data Export Exporting Data

  • Export type:

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.

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:
Version: v2017 vol 1.7
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.