This is a migrated thread and some comments may be shown as answers.

hide table rows when subreport emty data

1 Answer 78 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Le
Top achievements
Rank 1
Le asked on 20 Jan 2013, 04:22 PM
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;
        }

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 24 Jan 2013, 10:09 AM
Hi Le,

Please take a look at the following blog post elaborating on how to hide subReport item when it has no data.

If you have further questions, please send us more details how you pass the data to your sub report and its structure.

Regards,
Stef
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Le
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or