Hello,
MyMasterReport contains 3 subreport
in the report Master I have MyMasterReport.Datasource = MyModelClass
I wold like to have this:
subreport1.Datasource = MyModelClass.List1 //List1 is a property of my class MyModelClass and is a List<myObject1>
subreport2.Datasource = MyModelClass.List2 //List2 is a property of my class MyModelClass and is a List<myObject2>
subreport3.Datasource = MyModelClass.List3 //List3 is a property of my class MyModelClass and is a List<myObject3>
so, I create MyModelClass with a lot of property, one for each datasource
I send MyModelClass to master report, and it works:
-----------------------------
MyModelClass my_datasource_master = new MyModelClass();
master_report = new Reports.MyMasterReport();
master_report.Datasource = my_datasource_master;
--------------------------
How can I add MyModelClass.List1 to subreport1, etc... ?
In subreport1 I have just datasource, is myObject1 (and every subreport has indipendent datasource)
My problem is to link MyModelClass property List1 to my subreport1 datasource.
As you suggest in your post "https://www.telerik.com/forums/set-subreport-datasource-programmatically", in MyMasterReport I create binding has the follow image, but the subreport items are empty
And after the InitializeComponent() how can I do? Can I passing a List of Object as Parameters?
------------
Help me please,
Thank you