Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Show All Themes

Export Master-Detail Records

  • Export to PDF
  • Export to XLS
  • Export to XLSX
  • Export to DOCX
  • Export to RTF
  • Export to CSV
Category ID 
Category Name 
Expand1BeveragesSoft drinks, coffees, teas, beers, and ales
Expand2CondimentsSweet and savory sauces, relishes, spreads, and seasonings
Expand3ConfectionsDesserts, candies, and sweet breads
Expand4Dairy ProductsCheeses
Expand5Grains/CerealsBreads, crackers, pasta, and cereal
Expand6Meat/PoultryPrepared meats
Expand7ProduceDried fruit and bean curd
Expand8SeafoodSeaweed and fish

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.

The DevExpress ASP.NET MVC GridView allows both master and detail data to be exported with its SettingsDetail.ExportMode property.

In this demo, use the Details Export Mode combo box to select the desired data export mode.

  • None - only master rows will be exported.
  • Expanded - only master rows and expanded detail rows will be expanded.
  • All - all master and detail rows will be exported.

The GridView extension provides the ability to export binary images. The settings of exported images are controlled by the BinaryImageEditProperties.ExportImageSettings property within the BinaryImage column.

See Also:
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos