问题
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