Using 2 ObjectDataSource

2 posts, 1 answers
  1. Dario Concilio
    Dario Concilio avatar
    115 posts
    Member since:
    Apr 2016

    Posted 05 Jul Link to this post

    Hi to all,

    I need to create a report that it contains 2 ObjectDataSource:

    1st: return a List of objects that I have to show on report

    2nd: return an object that contains company information


    I need show 2nd item into pageheadersection and 1st normally using in detailed


    how can I do?

  2. Answer
    Nasko avatar
    909 posts

    Posted 06 Jul Link to this post

    Hello Potito,

    A Data Item can have only a single data source. Thus, in order to use multiple data sources in the report, you will need to add multiple data items.
    Since data items cannot be added to the Page Header section, the only way to display data there is to assign the Report.DataSource to the 2nd ObjectDataSource component.
    The 1st ObjectDataSource can be used together with a separate data item nested in the detail section of the report or in a static group section which won't be repeated for each data row of the report's data source.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. DevCraft R3 2016 release webinar banner
Back to Top