在不禁用代码执行的情况下隐藏 RDLC 报告中的一行 [英] Hide a row in RDLC report without disabling the code execution

查看:32
本文介绍了在不禁用代码执行的情况下隐藏 RDLC 报告中的一行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 .rdlc 报告中隐藏一行而不禁用该行的代码执行?

How could I hide a row in a .rdlc report without disabling the code execution for this row?

推荐答案

使用 Visibility.Hidden 属性.单击详细信息行手柄以选择整个详细信息行,展开 Visibility 属性并在 Hidden 属性中输入将隐藏该行的表达式.例如,如果要在 MyField 为零时隐藏该行,请输入:

Use the Visibility.Hidden property. Click on the Detail row handle to select the entire detail row, expand the Visibility property and enter an expression in the Hidden property that will hide the row. For example, if you want to hide the row when MyField is zero, you'd enter:

=IIF(Fields!MyField.Value = 0, True, False)

这篇关于在不禁用代码执行的情况下隐藏 RDLC 报告中的一行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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