Skip to content

Dynamically create a report based on the Grid View extension's data and layout.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/asp-net-mvc-grid-create-report-based-on-grid-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grid View for ASP.NET MVC - How to create a report based on grid data

This example demonstrates how to dynamically create a DevExpress report based on the Grid View extension's data and layout. The resulting report maintains all sorting, grouping, and filtering settings applied to the grid. The example code exports this report to a PDF file, but you can also insert the resulting report into another report.

Create a Report Based on Grid View Data

Follow the steps below to create a report based on the Grid View extension's data:

  1. Use session state to pass Grid View's layout settings to the controller.
  2. Create an instance of the XtraReport class.
  3. Bind the instance to the Grid View's data source.
  4. Based on the Grid layout, create bands and add them to the report.
  5. Create report controls and add them to the bands.

Files to Review

Documentation

More examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)