Displaying of table columns in SSRS sub report

  • Hi,

    I have a problem regarding the displaying of table columns in SSRS sub report.

    Only if the data is available, the sub report table report element displays.

    I want it to be shown, even if data is unavailable.

    Any solution available for this scenario.

  • Hi George,

    I've come across this problem before. What I did was to add an extra dataset to the subreport that always returns a value i.e.

    SELECT 1

    You don't have to add any fields from the dataset onto the report, I presume SSRS detects that there are rows returned. You should now see that the column headers appear in the subreport whether or not there is any data in the table.

  • Thank You, it has worked for me.

    Also, it is showing the table headers now, Is there any way to show one empty row under that, for tables with no value.

  • It feels a bit hacky but you could...

    Add an empty row to the table in your subreport, outside of the Detail group and use an expression for the row Visible property like:

    =RowNumber(Nothing) > 1

    Works on my test report.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply