Hide a row in RDLC report without disabling the code execution

邮差的信 提交于 2019-12-11 18:39:57

问题


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


回答1:


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)



回答2:


Use a table filter. The data will be extracted the filtered after excecution.

However I don't see the need for this unless.



来源:https://stackoverflow.com/questions/13910735/hide-a-row-in-rdlc-report-without-disabling-the-code-execution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!