Skip to main content
All docs
V25.1
  • .NET 8.0+

    ReportDataSourceHelperBase.RegisterObjectSpaceProviderService(XtraReport) Method

    Registers a service that supplies an IObjectSpace when it is required by the report data source.

    Namespace: DevExpress.ExpressApp.ReportsV2.Services

    Assembly: DevExpress.ExpressApp.ReportsV2.v25.1.dll

    Declaration

    public void RegisterObjectSpaceProviderService(
        XtraReport report
    )

    Parameters

    Name Type Description
    report XtraReport

    An XtraReport object that specifies the report.

    Remarks

    The Data Sources for Reports V2 require the IObjectSpace to dynamically bind data. The RegisterObjectSpaceProviderService method is called by the ReportDataSourceHelperBase.SetupReport method. You can override the virtual CreateReportObjectSpaceProvider method to customize the RegisterObjectSpaceProviderService method behavior. To use your own implementation of the ReportDataSourceHelper class, assign its instance to the ReportsModuleV2.ReportsDataSourceHelper property.

    See Also