Back to Devexpress

Bind a Report to a Database

eud-eud-for-devexpress-reports-reporting-for-web-report-designer-bind-to-data-bind-a-report-to-a-database.md

latest1.9 KB
Original Source

Bind a Report to a Database

  • Feb 09, 2026
  • 2 minutes to read

This tutorial illustrates how to bind a report to a database and specify a master-detail relationship between data source queries.

Add a New Data Source

  1. Create a new blank report.

  2. Invoke the designer menu and click Add Data Source.

  3. Select Database in the invoked Data Source Wizard and click Next. Available database types depend on the data connections registered in the application for the Data Source Wizard.

  4. Select the data connection and click Next.

  5. Choose which tables, views and/or stored procedures to add to a report and click Next. Select two or more tables to create a master-detail report.

  6. Set master-detail relationships on this wizard page. Hover the master table name, click the plus button and choose the detail table.

Use an Existing Data Source

You can bind your report to a predefined data source. Open the Field List panel, click the Add DataSource button and select a data source from the drop-down list.

The Field List reflects the added SQL data source and its hierarchy. You can select the data source to edit it.