Using ObjectBindingDatasource to bind to object exposing Lists, cant drag and drop fields onto repor

Posted by SKM on Stack Overflow See other posts from Stack Overflow or by SKM
Published on 2010-03-08T06:25:26Z Indexed on 2010/03/09 2:06 UTC
Read the original article Hit count: 341

Filed under:

Hey Guys Ive used the ObjectBindingDatasource to bind to a class Ive called "ReportViewModel" which contains properties such as

List Companies {get; set;} List Managers {get; set;}

in its constructor Im just calling a method to populate with dummy data

Managers = new ReportDataRepository().GetManagers(); Companies = new ReportDataReposiroty().GetCompanies(); ...

When i create the new Datasource , it shows the ReportViewModel class with the Lists under it. I expand the Companies object and attempt draging and dropping fields onto the report designer and it works. Though doesnt allow me to drag and drop for any other List.

Any guidance would be really appreciated.

© Stack Overflow or respective owner

Related posts about c#