I have a table in the report and a subreport inside that table.I need to hide the line that contains the subreport when the subreport has no data.I tried many ways but they all do not work.I use VS 2008, Terelikreport Q1 spq 2011. Net.One of the ways I've tried.
private
void
subReport1_ItemDataBound(
object
sender, EventArgs e)
{
Processing.SubReport subReport = (Processing.SubReport)sender;
Processing.Report detailReport = (Processing.Report)subReport.InnerReport;
Processing.Report mainReport = (Processing.Report)subReport.Report;
mainReport.Visible = detailReport._filteredCount > 0;
}