Skip to main content

Business Object

  • 2 minutes to read

You can bind reports to a business object that serves as an object data source.

Tip

Use an object data source to prepare stored data to display in a report. For instance, in a multi-tier application where the data layer is separated from the presentation layer, you can bind a report to a .NET object that fetches data from a database.

An object can supply data in one of the following ways:

  • Include a public member (method or property) to return an object that implements the IEnumerable<T> interface.

    This member can be a static or instance property (method). It serves as the data source’s data member. If a method has parameters, use data source parameters to pass parameter values to the method.

  • Use the object’s fields to supply data.

Use one of the following approaches to bind your report to an object data source:

The following demos use object data sources (the DevExpress Demo Center should be installed):

See Also