Blank fields in subreport

2 posts, 0 answers
  1. Stefano
    Stefano avatar
    1 posts
    Member since:
    Dec 2014

    Posted 22 May 2015 Link to this post


    i'm struggling for two days with this issue...i will explain my situation, i have a subreport inside a main report and programmatically i set the DataSource (code behind with Visual Studio), however the main report displays correctly the fields (and then it correctly takes the DataSource) the problem it's the subreport, it seems that it takes the DataSource (i haven't any error that told me that the fields don't exist) but they are blank....for example on the main report i have in a textbox "Fields.Name" and it's correctly displayed while on the subreport if i put Fields.Name i haven't any error but the textbox is blank.

    Of course i work with business objects the example of the Fields it's to let you understand my issue....i tried to bind the DataSource property on subreport with ReportItem.DataObject (like here  but the issue is the same...the fields are blank...i wish that someone can help me.

    Thanks in advance


  2. Nasko
    Nasko avatar
    1051 posts

    Posted 26 May 2015 Link to this post

    Hello Stefano,

    The approach to bind the DataSource property to the ReportItem.DataObject is demonstrated in the attached sample master-detail report scenario.
    You can review the attached file and base your own scenario around it.

    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
Back to Top