Hide tablerow in .NET rdlc report if field presented in row is empty?

Possible duplicate:
How to collapse a string in RDLC and not just hide it?

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

The plate is 25 inches high and takes up a lot of space, even if there is no data to display. Therefore, in the end, I get a gap of 25 inches between each line of the report.

I am using Visual Studio 2005 with the built-in rdlc reporting capabilities.

Thank you very much

+1
source share
1 answer

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

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

See Expression Examples (Reporting Services)

+5
source

All Articles