Ideally, I would like to do accomplish the following:
Basically, because of how are dependencies are set up, I would like to hand my report a pre-populated list rather than setting the DataSource and DataMember properties on the objectDataSource and letting the report execute my query. All the examples I have found either perform data access in the DataSource object or pre-populate a collection in the constructor (like the List Bound report demo). Any thoughts?
IEnumerable<MyPoco> pocos = _reportingTasks.GetMyPocos();
var report = new MyPocoReport {DataSource = pocos};
ReportViewer1.ReportSource = new InstanceReportSource {ReportDocument = report};
Basically, because of how are dependencies are set up, I would like to hand my report a pre-populated list rather than setting the DataSource and DataMember properties on the objectDataSource and letting the report execute my query. All the examples I have found either perform data access in the DataSource object or pre-populate a collection in the constructor (like the List Bound report demo). Any thoughts?