I am attempting to dynamically hide a report row in reporting services if the subreport contains no data however I see no way of doing it in SQL 2005 Reporting Services (with SP2).
Right now I have a table that has the following attributes:
1. Header Column with my column titles
2. One detail row, that has the =Field!fieldname.value underneath all of my column titles
3. An additional detail row that has merged all the cells of the columns so that it is one row without breaks. Inside this row is a single subreport that works fine.
My question is, I have set the NoRows property to display "No data found...", however that is wasting a lot of space on the report, therefore I would like to just hide the row alltogether when there is no data from the subreport found.
I can not find a way to do this. In fact in SQL 2005 when I click on a cell and goto expressions, and enter "
=ReportItems!", I would expect to see my subreport show up in the intellisense listing, however it does not. Why doesn't it show up so I can see what types of attributes I can examine to see if one or more rows were generated with the subreport? This way if no rows were returned I can set the visibility of the 2nd detail row to be hidden instead of visible.