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

how to get value from sub report in my main report

3 Answers 82 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mohammed
Top achievements
Rank 2
Mohammed asked on 22 Apr 2013, 07:03 PM
dear team,
i have a textbox located in a group section in a sub report.
basically i just want to access this textbox from my main report and get its value.

3 Answers, 1 is accepted

Sort by
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 24 Apr 2013, 02:56 PM
I don't believe you can do that. Unless you re-calculate it. What's the point anyway?
0
Mohammed
Top achievements
Rank 2
answered on 24 Apr 2013, 06:31 PM
i want to display the textbox value in the main report detail section instead of displaying it in the sub report.

but it should be exist that feature to allow us to access any of the sub reports items from the main report.
0
Hadib Ahmabi
Top achievements
Rank 1
answered on 29 Apr 2013, 12:07 PM
Try this:
private void subReport1_ItemDataBound(object sender, System.EventArgs e)
{
    var subRep = (Telerik.Reporting.Processing.SubReport)sender;
    var item = Telerik.Reporting.Processing.ElementTreeHelper.FindChildByName(subRep.InnerReport, "textBox2", true);
}
Tags
General Discussions
Asked by
Mohammed
Top achievements
Rank 2
Answers by
Hadib Ahmabi
Top achievements
Rank 1
Mohammed
Top achievements
Rank 2
Share this question
or