动态隐藏列RDLC报告 [英] hide columns dynamically in rdlc report
问题描述
我们如何隐藏在RDLC报告动态列MVC 2?
How we can hide columns dynamically in rdlc reports in MVC 2?
时,可以使用外部参数?我们如何可以通过编程控制列的知名度RDLC报告?
Is it is possible using external parameters? How we can programmatically control the visibility of columns in rdlc reports?
推荐答案
您不想使用隐藏
属性,你真的想选择列,右单击并选择列能见度
。一旦在这里你可以使用一个前pression基于参数设置的知名度,是这样的:
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.
这篇关于动态隐藏列RDLC报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!