To follow up my last reply, I noticed that you are using a report item in Report2'
s detail section which looks a lot like the Table report item
. Note that the Table item is a Data Item
, which means it has its own data source.
You need to set the Table.DataSource
in order to display data in the Table item. Instead, you are setting the report.DataSource = objectDataSource
in the provided sample code.
This will result in the whole report's detail section repeating itself (together with the table) for each data row in the report's data source.
In order to change this behavior, you need to set the Table.DataSource
instead of the Report.DataSource
as in the following sample:
sender, EventArgs e)
var objectDataSource =
objectDataSource.DataSource = GetAllData();
// GetData returns a DataSet with three tables
//Telerik.Reporting.Report report = new Telerik.Reporting.Report();
Report2 report =
//added this instead...
var table = report.Items.Find(
table.DataSource = objectDataSource;
Telerik.Reporting.InstanceReportSource reportSource =
reportSource.ReportDocument = report;
reportViewer1.ReportSource = reportSource;
The approach for retrieving the table item programmatically can be found in the reporting documentation: Access items from report, calling application and Table
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.