how to use multiple objectDataSource in a single Report ?

2 posts, 0 answers
  1. Md.Hasanuzzaman
    Md.Hasanuzzaman avatar
    31 posts
    Member since:
    Apr 2011

    Posted 15 Sep 2012 Link to this post

    I am trying to use multiple objectDataSource in a single report but i got an error

     Only fields from the current data source 'objectDataSource1' are allowed 

    I added objectDataSource1 first then another one named objectDataSource2.

    i need to add some fields in Report from objectDataSource2. but i get this error.
    Please tell me how can i overcome this problem.
    thank you. 

    I am using Telerik Reporting Q2 2012 

  2. Elian
    Elian avatar
    435 posts

    Posted 19 Sep 2012 Link to this post


    Since you cannot use more than one DataSource at a time, you have to either change your data-retrieval logic or your report's layout. You can:
    • Rework the data-source so it returns all the data you need at once.
    • Create classes which will retrieve the data and merge it, then use ObjectDataSource
    • Rearrange your layout and instead of binding the data to the report itself, use data items: Table/Crosstab/List 
    Kind regards,
    the Telerik team

    BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Back to Top