如何在RDLC中折叠一行而不是仅仅隐藏它? [英] How to collapse a row in RDLC rather than just hide it?

查看:144
本文介绍了如何在RDLC中折叠一行而不是仅仅隐藏它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个显示表的RDLC报告. 在某些情况下,此表中的某行不应出现. 如果满足这些条件,则可以使用表达式将Hidden属性设置为false.

I have an RDLC report showing a table. A certain row in this table should not appear in some conditions apply. I was able to set the Hidden property to false using an expression if these conditions apply.

问题在于,尽管隐藏了该行,但该行仍在表中进行,即该行未折叠.

The problem is that, though hidden, the row is still taking place in the table, i.e. it is not collapsed.

我该如何折叠而不是简单地将其隐藏?

How can I collapse it rather than simply hide it?

我正在将RDLC与报表查看器2010 SP1配合使用

I am using RDLC with report viewer 2010 SP1

推荐答案

检查此解决方案

将隐藏"属性设置为True或False

set Hidden property to True or False

= (Fields!UserName.Value.ToString() = "")

还要检查表达式示例

希望这个答案对您有所帮助.

Hope this answer help you.

这篇关于如何在RDLC中折叠一行而不是仅仅隐藏它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆