Table in detail section of group

3 posts, 1 answers
  1. Joel
    Joel avatar
    166 posts
    Member since:
    Oct 2006

    Posted 22 Jun 2012 Link to this post

    I am passing a dataset to my report and setting me.datasource = ds.tables(1) for binding in codebehind.

    In the detail section, I have always used text boxes to display data.  Getting fine lines to match up and look great has been a problem historically.  I have used tables in other reports that were not grouped and they have always run without issue.

    This one is stumping me.  It appears the table is getting the data because I am getting the proper amount of rows, but all of the boxes are blank.  I have triple checked the field names and they are correct.

    Is there some limitation with using tables in the grouped detail section?

    If I only change  table2.datasource = ds.tables(1) in the code behind, I get all rows disregarding of the grouping (as I would expect), with text inside, further confirming my field names are correct.

    I am using q1 2012.

    Any ideas?
  2. Answer
    Peter
    Admin
    Peter avatar
    1611 posts

    Posted 25 Jun 2012 Link to this post

    Hi Joel,

    The Table item is a separate data item. Thus if you want to utilize a Table item you should set its DataSource property. In order to set it in a way to respect the report's grouped data, our suggestion is to utilize Binding as shown in the following example: The

    Property path  Expression
     DataSource  =ReportItem.DataObject

    For a detailed example check out the ProductCatalog demo that came with your installation of Telerik Reporting.

    Regards,
    Peter
    the Telerik team

    FREE WEBINAR ON THE NEW REPORT DESIGNER! Join us on Friday, June 29 at 10:00 AM PST for a comprehensive demo of the official version of the standalone Report Designer and find out how easy it is to empower your users with creating, editing and sharing ad-hoc reports. You may even win a free Telerik Ultimate Collection license! Register today >>

  3. DevCraft banner
  4. Joel
    Joel avatar
    166 posts
    Member since:
    Oct 2006

    Posted 25 Jun 2012 Link to this post

    Thank you.  That worked perfectly.
Back to Top