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

Using a table in a report

2 Answers 134 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 10 Jul 2015, 05:07 PM

I have a basic report that has about 10 columns and I have created the table and put the =field.XXXX in each text box.  I had it working using the report and saw that I needed to use the table since the export adds merged cells to EXCEL.  What I am trying to figure out is how to bind data to it.  I used a datatable when I created it originally but it doesn't seem to work using the table.  Can someone post a code snippet to populate table cells?  Let me know if you need more information.

 

thanks for help in advance,

Mark

2 Answers, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 13 Jul 2015, 10:00 AM
Hello Mark,

Using the report's detail section you set the Report.DataSource to your DataTable. In a similar manner when using a Table item you need to assign the DataTable to the Table.DataSource property. For more information and for best practices, please refer to the Data Source Components help article.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Mark
Top achievements
Rank 1
answered on 13 Jul 2015, 01:03 PM

So what I did was from:

rptReport.DataSource = dtBottom

to:

rptReport.tblReport.DataSource = dtBottom

for anyone that runs into this in the future. 

Tags
General Discussions
Asked by
Mark
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Mark
Top achievements
Rank 1
Share this question
or