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

Can A Table Use The Reports Fields

5 Answers 472 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 06 Nov 2009, 12:17 AM

I'm using tables in my report to make it easy for me to increase the height of sections programmatically. Now I need to add a field from the reports data source in the detail section to a table in the detail section. When I drag the field from the details section to the Table it uses the Tables data source which I don't have set so nothing is displayed. Is there a way to reference the reports fields within the table? If not I can control the flow of the individual controls.

5 Answers, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 06 Nov 2009, 05:26 PM
Hi Jason,

The Table report item can be considered a separate data region within the Report the same way the SubReport is. This means that the Table knows nothing about the data source of the parent Report, so you cannot bind a TextBox from the Table directly to a field from the Report data source. Perhaps the easiest solution is to simply add the required field from the Report data source to the Table data source. Alternatively you can handle the ItemDataBinding event of the TextBox and set its Value property programmatically to the required field from the Report data source. I have created a small test report to illustrate this approach (see the attached file).

Kind regards,
Ivan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jason
Top achievements
Rank 1
answered on 06 Nov 2009, 05:44 PM
I fugured I would have to do it that way. Can I use a value from a textbox in the parent detail processing section?
0
Jason
Top achievements
Rank 1
answered on 06 Nov 2009, 05:49 PM
That should work. Thanks!
0
Jason
Top achievements
Rank 1
answered on 06 Nov 2009, 06:02 PM
Yep, worked. Nice product and great support. Good to know you guys are here for us!
0
Gersh
Top achievements
Rank 2
answered on 16 Dec 2009, 03:47 PM
Thank you so much for asking this question and thank you support for answrering it. You literally saved my sanity.
Tags
General Discussions
Asked by
Jason
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Jason
Top achievements
Rank 1
Gersh
Top achievements
Rank 2
Share this question
or