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

Table in detail section of group

2 Answers 719 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 2
Joel asked on 22 Jun 2012, 03:25 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 25 Jun 2012, 03:03 PM
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 >>

0
Joel
Top achievements
Rank 2
answered on 25 Jun 2012, 09:04 PM
Thank you.  That worked perfectly.
Tags
General Discussions
Asked by
Joel
Top achievements
Rank 2
Answers by
Peter
Telerik team
Joel
Top achievements
Rank 2
Share this question
or