hide columns dynamically in rdlc report

前端 未结 3 1163
孤城傲影
孤城傲影 2021-02-20 05:03

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

3条回答
  •  终归单人心
    2021-02-20 05:38

    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.

提交回复
热议问题