How we can hide columns dynamically in rdlc reports in MVC 2?
Is it is possible using external parameters? How we can programmatically control the visibility of columns
You don't want to use the Hidden
property, you actually want to select the column, Right Click and select Column Visibility
. Once in here you can use an expression to set the visibility based on a parameter, something like this:
= iif(Parameters!column_visible.Value = 1, false, true)
Hidden
doesn't work in this instance because you're not actually applying it to an object like you are when you select something like a textbox.