how to get value from sub report in my main report

4 posts, 0 answers
  1. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 22 Apr 2013 Link to this post

    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.
  2. Hadib Ahmabi
    Hadib Ahmabi avatar
    181 posts
    Member since:
    Nov 2011

    Posted 24 Apr 2013 Link to this post

    I don't believe you can do that. Unless you re-calculate it. What's the point anyway?
  3. DevCraft banner
  4. Mohammed
    Mohammed avatar
    87 posts
    Member since:
    Aug 2011

    Posted 24 Apr 2013 Link to this post

    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.
  5. Hadib Ahmabi
    Hadib Ahmabi avatar
    181 posts
    Member since:
    Nov 2011

    Posted 29 Apr 2013 Link to this post

    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);
    }
Back to Top