This is a migrated thread and some comments may be shown as answers.

Blank fields in subreport

1 Answer 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stefano
Top achievements
Rank 1
Stefano asked on 22 May 2015, 10:26 AM

Hi,

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 http://www.telerik.com/forums/how-to-bind-the-datasource-of-a-subreport-in-the-designer#nSbLMCJKXUmyRhU4w5mi7g)  but the issue is the same...the fields are blank...i wish that someone can help me.

Thanks in advance

 

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 26 May 2015, 12:10 PM
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.

Regards,
Nasko
Telerik
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
Tags
General Discussions
Asked by
Stefano
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or