SSRS show/hide tablix column programmatically based on parameter in rdl file

Pingpong picture Pingpong · Jul 25, 2011 · Viewed 15k times · Source

I have a SSRS rdl file that contains a 3-column tablix table, I want to show and show any of the columns programmatically based on the rdl paramter.

I can achieve that by setting the Hidden property of a column to an expression:

=Parameters!ShowSecondColumn.Value

However, the problem is that when the middle column is hidden, the column space is still there. What I need is that the third column move and occupy the second column.

Any idea would be very much appreicated.

sss 2008 r2

Answer

Pingpong picture Pingpong · Jul 26, 2011

Thanks Kevin Fisher. As he pointed out, "column visibility" should be set rather than field visibility.