Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide row (and remove whitespace placeholder) of tablix in Reporting Services 2008

Tags:

I have a row in a tablex that I want to hide based on a condition. I can do this with the visibility property and also using CanShrink as well is an option.

I've tried both of these and the best I can do is hide the row (make it invisible), but it keeps the whitespace it takes up - I need to remove the whitespace too so if it is not shown that it doesn't take up paper/viewing space.

I have also made the height of the row very small and put cangrow=true so that that if i populate the field with data based on an expression it will grow to the right size but this is not ideal because there is still 0.03125in of space for the row that is always shown (minimim height) and if it grows it grows to fit the text but not neccessarily the set size I want.

I thought I had done this before in an older version of RS but I can't seem to get it to work correctly in this version (2008).

Any ideas?

like image 233
Dan Avatar asked Jul 09 '10 15:07

Dan


1 Answers

Try to set the Hidden property of the Static Row Group under the Details Group, in this case the whole row will disappear instead of the content of the textboxes.

If you are using Report Builder, you need to switch to Advanced Mode (make sure that the Properties and the Grouping windows are displayed, go to the upper right side of the Grouping window and press the black triangle):

The magic triangle

Click on the second "Static" item under the "(Details)" group and you can set the Hidden property on the Properties window.

Link to MSDN sample

like image 176
retupmoCyuG Avatar answered Oct 15 '22 13:10

retupmoCyuG