Please design reports to have report parameters, and map sub reports' parameters to fields of the main report - step 7 from Configure SubReport
. If you are modifying the SubReport item's ReportSource property at run-time, copy the SubReport.ReportSource.Parameters collection in the newly created Reportsource object's Parameters collection. This will include the mapping between the sub report's parameters and fields of the parent report via expressions. Then you will not set an exact hard-coded value to all produced sub reports:
var mainReport =
Telerik.Reporting.SubReport sr = (Telerik.Reporting.SubReport)mainReport.Report.Items.Find(
var typeName = (sr.ReportSource
//or cast to the type of the used ReportSource
var subreport = (Report)Activator.CreateInstance(Type.GetType(typeName))
//modify the sub report instance
subreport.DataSource = tblFS;
//or if it is a nested Table item use the Find method
//Dim table As Telerik.Reporting.Table = DirectCast(subreport.Items.Find("Table1",True)(0),Telerik.Reporting.Table)
//table.DataSource = tblFS
//update the SubReport item's ReportSource to display the modified report
InstanceReportSource IRS =
IRS.ReportDocument = subreport;
//move original parameters settings to the new ReportSource object
sr.ReportSource = IRS;
In order to provide you more accurate suggestions we will need to check the settings of the original reports and the code where they are modified and bound to new data objects.
If it is an emergency, please submit a ticket through the support ticketing system. We try to monitor forums, but we cannot guarantee a response in a timely manner by a Telerik representative here.
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 Feedback Portal
and vote to affect the priority of the items