HI,
I'm trying to assign datasource to a subreport in the masterreport after InitializeComponent() and the data doesn't seem to be loading. I've tried with SqlDataAdapter, DataSet, I've also tried assigning in the needdatasouce event and nothing seems to work. Please let me know how I can do it. I also need to pass parameters from the master to the subreport at the time of loading (not from any datafields or textboxes but predetermined).
public masterform()
{
InitializeComponent();
//instantiate subreport form here.
//I get SqlAdapter da here
this.detailSubReport.ReportSource = subreportform;
this.detailSubReport.ReportSource.DataSource = da;
}
Thanks,
Laxmi