Hi Dave Hayward,
There is some misunderstanding - I was talking about report parameters and clearly you're using custom properties for this purpose. Can you clarify what agonistSubmittedReport1 is? If this is the definition subreport and ExamId is a custom property, the correct syntax would be:
agonistSubmittedReport1.ReportSource.ExamId = dataRow.ExamId;
If still having problems, put a break point in the event and debug what is the value when the report is initially rendered and what is the value on refresh and you would pinpoint where the problem lies.
Generally speaking, the correct approach would be using the NeedDataSource event of the subreport for this purpose - this approach loads only the necessary data from the database server by executing parameterized SQL queries in the NeedDataSource event.
The other possible approach is by using report filters and parameters - this approach populates all data from the database server on the client machine and filters the records of the detail report according to each record of the master report using report filters and report parameters. You can see this in action in our Invoice demo report
I have created a small sample project with reports that illustrates this method (see the attached ZIP archive file). You'll need the Adventure Works
sample database that ships with every Telerik Reporting installation in order to run the sample report.
the Telerik team
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?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.