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

Cannot implicitly convert type 'System.Collections.Generic.List<Tt>' to 'Telerik.Reporting.ReportSource'

2 Answers 498 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Veteran
Jonathan asked on 06 Jul 2018, 01:11 AM

Hi..

How do you set a subreports ReportSource to a List<>?

 public List<uspGet_POs_DETResult> po_det { set; get; }

 

 

this.subReportDetail.ReportSource = po_det;

 

 

SeverityCodeDescriptionProjectFileLineSuppression State
ErrorCS0029Cannot implicitly convert type 'System.Collections.Generic.List<uspGet_POs_DETResult>' to 'Telerik.Reporting.ReportSource'


2 Answers, 1 is accepted

Sort by
0
Accepted
Silviya
Telerik team
answered on 10 Jul 2018, 01:35 PM
Hi Jonathan,

Actually, the purpose of Report Sources are to access report definitions that can be stored in different locations and in different formats. This is achieved through the various report sources that the Reporting engine provides - Available Report Sources.

In case you need to bind the list to the the subreport, you can use an ObjectDataSource component.
I suggest to check our demo ListBoundReport that can be found in the ReportLibrary project->DataBinding folder of our examples that come with the installation of Telerik Reporting, i.e. C:\Program Files (x86)\Progress\Telerik Reporting <VERSION>\Examples\CSharp|VB).
Comprehensive examples are available also in the How to: Bind to a BusinessObject help article.

Regards,
Silviya
Progress 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
Jonathan
Top achievements
Rank 1
Veteran
answered on 10 Jul 2018, 02:04 PM
thx
Tags
General Discussions
Asked by
Jonathan
Top achievements
Rank 1
Veteran
Answers by
Silviya
Telerik team
Jonathan
Top achievements
Rank 1
Veteran
Share this question
or