Hi,
I have report that contains a sub-report. The sub-report itself contains a sub-report. My goal is to get that sub-report within the sub-report of my main report so I can populate it's data. So I have the following:
* master report
* a sub-report inside the master report
* a sub-report inside the sub-report mentioned above
Take note that I am populating data using an objectsource. Now, I have the following code:
"detail.Items" does not contain any element. I can also confirm that just by looking into the mainReport.Items collection. Using VS' watch window I manually navigate through the mainReport.Items collection, located the details section and investigated its own Items collection. The items collection is really empty for the details section.
How can I get the inner sub-report so I can manipulate it?
I have report that contains a sub-report. The sub-report itself contains a sub-report. My goal is to get that sub-report within the sub-report of my main report so I can populate it's data. So I have the following:
* master report
* a sub-report inside the master report
* a sub-report inside the sub-report mentioned above
Take note that I am populating data using an objectsource. Now, I have the following code:
var mainReport =
new
TheReport();
// this works fine
var detail = ((mainReport.Items[0]
as
Telerik.Reporting.DetailSection)
.Items[
"subReport"
]
as
Telerik.Reporting.SubReport);
// this one does not work
var innerDetail = ((detail.Items[0]
as
Telerik.Reporting.DetailSection)
.Items[
"innerSubReport"
]
as
Telerik.Reporting.SubReport);
"detail.Items" does not contain any element. I can also confirm that just by looking into the mainReport.Items collection. Using VS' watch window I manually navigate through the mainReport.Items collection, located the details section and investigated its own Items collection. The items collection is really empty for the details section.
How can I get the inner sub-report so I can manipulate it?