可能重复: How to collapse a row in RDLC rather than just hide it?
我看到了tablerow.Visibility属性和另一个名为“ToggleItem”的属性,但不确定如何使其工作。如果tablerow的唯一文本字段(在本例中为用户注释字段)为空,我想动态隐藏它。”“CanShrink”似乎做不到这一点。
tablerow高0.25英寸,即使没有数据显示,也会占用这么多空间。因此,报告中的每一行之间都有0.25英寸的间隙。
我正在使用VisualStudio2005,它具有内置的rdlc报告功能。
只需将隐藏属性设置为True、False或某个表达式。
= (Fields!UserComment.Value.ToString() = "")
看见 Expression Examples (Reporting Services)