Page 1 of 2
Hiding a row with empty values
Posted: Wed Jul 31, 2013 6:27 pm
by thalescouto
I've been trying to hide a row with two columns in a databand when one of the items is empty, but I cant find out how to do this.
Here is how my databand looks like in the Design:

- databand.png (16.87 KiB) Viewed 6230 times
I have set "SUBCATEGORIA" row enabled property to false (5th row). When I run the report, the row dont show up but turns into a white space.

- databand2.png (9.4 KiB) Viewed 6230 times
What should I do so the report dont show the white space when every item in the row is disabled?
Thanks in advance.
Re: Hiding a row with empty values
Posted: Thu Aug 01, 2013 4:49 am
by HighAley
Hello.
Please, read the
Automatically Shifting Components section of our User Manual.
Thank you.
Re: Hiding a row with empty values
Posted: Thu Aug 01, 2013 9:12 pm
by thalescouto
Thanks for the reply, Aleksey!
I've read the section you said, but I still cant find out how to do what I want.
I'm attaching a sample report and a xml with some data to this post.
As you can see, I created a condition to the "City" row (City label and {Customers.City} data field) that will be set disabled when there's no data to display. When I run the report, this row is not displayed but turns into an empty space.

- sample2.png (16.13 KiB) Viewed 6213 times
Could you please help me?
Thank you!
Re: Hiding a row with empty values
Posted: Mon Aug 05, 2013 12:50 pm
by HighAley
Hello.
The Shift Mode works if there is no data in the text component and Can Shrink property is set to true. But doesn't work if you disable component in the Conditions.
Here is a modified report template where you could see how to do it.
Thank you.
Re: Hiding a row with empty values
Posted: Mon Aug 05, 2013 2:29 pm
by thalescouto
Everything is working as I wanted.
Thank you
Re: Hiding a row with empty values
Posted: Tue Aug 06, 2013 8:20 am
by Andrew
Hello,
Thank you for letting us know about this.
Re: Hiding a row with empty values
Posted: Thu Aug 15, 2013 6:46 pm
by thalescouto
Hello Andrew,
I thought that everything was ok, but I found something wrong.
When there's more than one "Customer" in the report data and it has City value filled, the row height is shrinked to fit the font size.
Is there a way to make the row height the same as it was specified in the Design and still hide it when it has empty values?
Re: Hiding a row with empty values
Posted: Fri Aug 16, 2013 2:46 pm
by HighAley
Hello.
You could set the CanShrink property in the Before Print event of the text components to False if there is any value.
Thank you.
Re: Hiding a row with empty values
Posted: Fri Aug 16, 2013 5:51 pm
by thalescouto
Aleksey,
I did that and it's all good now.
Thank you again!
Re: Hiding a row with empty values
Posted: Mon Aug 19, 2013 6:00 am
by HighAley
Hello.
We are always glad to help you.
Let us know if you need any additional help.
Thank you.