显示或隐藏rdlc报表中的列 [英] Show or hide column in rdlc reports
问题描述
我在Visual Studio 2010中使用rdlc报表的原因是我在某些情况下摸索了数据.
我有一个在ProductTypes上有一个组的表.该组最后设置为PageBreak.
我需要做的是根据当前组的ProductType有条件地隐藏整个列.
例子
第1页=产品1 =第1列可见
第1页=产品1 =第2列可见
页面2 =产品2 =隐藏了列1
第2页=产品2 =第1列可见
您能帮我解决这个问题吗?
i m using rdlc report in visual studio 2010 in that i have groped data on some condition .
I have a table that has a group on ProductTypes. This group is set to PageBreak at end.
What I need to do is to conditionally hide an entire column based on the current group''s ProductType.
Examples
Page 1 = Product 1 = Column 1 is visible
Page 1 = Product 1 = Column 2 is visible
Page 2 = Product 2 = Column 1 is hidden
Page 2 = Product 2 = Column 1 is visible
Can you help me figure this one out ?
推荐答案
我认为您可以使用该列的函数表达式.在要隐藏或显示列的表达式上写条件..
I think you can use function expression of that column. write the condition on expression on that you want to hide or show the columns..
这篇关于显示或隐藏rdlc报表中的列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!