Hi
i have 1 report with 2 subreports. one of the subreport has 2 sqldatasources. based on the main reports fields pick the datasource out of 2 .
i am ausing needdatasource event in subreport like.
private void StateErrorsAtAGlance_DetailHeader_NeedDataSource(object sender, EventArgs e)
{
Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
if (report.Parameters["HeaderType"].Value.ToString().Equals("Agency Error"))
{
this.DataSource = this.sqlDataSource1;
}
else
{
this.DataSource = this.sqlDataSource2;
}
}
when run the main report returns 3 field , 1 agency Error, Client Error and No error.
but subreport gives result only agency error row remaing rows like Client error and No error it picks design time parameter values,
that's it shows All zeros.
i observed when debug the subreport needdatasource events calls only one time, how it 'll manage when main reports have 4 records
i have 1 report with 2 subreports. one of the subreport has 2 sqldatasources. based on the main reports fields pick the datasource out of 2 .
i am ausing needdatasource event in subreport like.
private void StateErrorsAtAGlance_DetailHeader_NeedDataSource(object sender, EventArgs e)
{
Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)sender;
if (report.Parameters["HeaderType"].Value.ToString().Equals("Agency Error"))
{
this.DataSource = this.sqlDataSource1;
}
else
{
this.DataSource = this.sqlDataSource2;
}
}
when run the main report returns 3 field , 1 agency Error, Client Error and No error.
but subreport gives result only agency error row remaing rows like Client error and No error it picks design time parameter values,
that's it shows All zeros.
i observed when debug the subreport needdatasource events calls only one time, how it 'll manage when main reports have 4 records