I created in my master-report this eventheandler, but error tell me (Processing.SubReport subReport = (Processing.SubReport)"sender;) dont' cast Processing.SubReport with Processing.Report.
I want view textbox13 when subreport = 0
I want view textbox13 when subreport = 0
public masterReport(string x)
{
InitializeComponent();
try
{
sqlDataSource1.SelectCommand =
".......";
this.sys2.ItemDataBound += new EventHandler(sys2_ItemDataBound);
}
catch (Exception)
{
throw;
}
}
void sys2_ItemDataBound(object sender, EventArgs e)
{
Telerik.Reporting.Processing.
SubReport subReport = (Telerik.Reporting.Processing.SubReport)sender;
Telerik.Reporting.Processing.
Report report = (Telerik.Reporting.Processing.Report)subReport.InnerReport;
if (report.ChildElements.Find("trasmissione", true).Length > 0)
{
subReport.Visible =
true;
}
else
{
textBox13.Visible =
true;
}
}
Please, help me. Thank you