如果行中表示的字段为空,则在.NET rdlc报告中隐藏表格行? [英] Hide a tablerow in a .NET rdlc report if the field represented in the row is empty?

查看:116
本文介绍了如果行中表示的字段为空,则在.NET rdlc报告中隐藏表格行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

$ b如何在RDLC中折叠行而不是仅仅隐藏行?


$ b

我看到了tablerow.Visibility属性和另一个名为 ToggleItem的属性,但不确定如何使它工作。如果只有文本字段(在这种情况下为用户注释字段)为空,我想动态隐藏表格行。

I see the tablerow.Visibility property and another property called 'ToggleItem' but am not sure how to make this work. I want to hide the tablerow dynamically if it's only text field (in this case a user comment field) is empty. 'CanShrink' doesn't seem to do the job.

工作台高0.25英寸,即使没有数据显示,它也占用了很大的空间。

The tablerow is .25 inches high and it takes up this much space even if there is no data to display. Therefore, I end up with .25 inch gap between every row on the report.

我正在使用具有内置rdlc报表功能的Visual Studio 2005。

I am using Visual Studio 2005 with the built in rdlc reports capability.

推荐答案

只需将Hidden属性设置为True或False或某些表达式。

Just set Hidden property to True or False or some expression.

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

请参见表达式示例(Reporting Services)

这篇关于如果行中表示的字段为空,则在.NET rdlc报告中隐藏表格行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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