1

Possible Duplicate:
How to collapse a row in RDLC rather than just hide it?

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.

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.

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

user513951
  • 12,445
  • 7
  • 65
  • 82
user52212
  • 603
  • 3
  • 8
  • 18

1 Answers1

5

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

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

See Expression Examples (Reporting Services)

Maksym Gontar
  • 22,765
  • 10
  • 78
  • 114
  • cool...I didnt know that property could be set to an expression in the designer...it appears to work now...thanks! – user52212 Mar 09 '09 at 19:41