I have a subreport in my details section of my report and i am trying to hide the subreport when it does not contain any data
Telerik.Reporting.Processing.SubReport subReport = (Telerik.Reporting.Processing.SubReport)sender;
Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)subReport.InnerReport;
subReport.Visible = subReport.ChildElements.Find("detail", true).Length > 0;
But the above code just hides the subreport and the space occupied by it still persists and there is that gap between my main report rows.....How can i get the space removed when the subreport is not showing up?
Telerik.Reporting.Processing.SubReport subReport = (Telerik.Reporting.Processing.SubReport)sender;
Telerik.Reporting.Processing.Report report = (Telerik.Reporting.Processing.Report)subReport.InnerReport;
subReport.Visible = subReport.ChildElements.Find("detail", true).Length > 0;
But the above code just hides the subreport and the space occupied by it still persists and there is that gap between my main report rows.....How can i get the space removed when the subreport is not showing up?