Page 1 of 1

Hide SubSport when DataSource has no data

Posted: Wed Feb 15, 2017 7:47 pm
by pcsiquiero
I have a DataBand with 3 SubReports, the first and second (SubReport 1 and SubReport 2 in attached image1) leave a blank space (attached image 2) when they have no data to display.
Is it possible to hide these SubReports and readjust the DataBand so that this space is not empty?

Re: Hide SubSport when DataSource has no data

Posted: Wed Feb 15, 2017 10:50 pm
by Alex K.
Hello,

Please try to set the DockStyle property as Top and CanShrink to true.

Thank you.

Re: Hide SubSport when DataSource has no data

Posted: Thu Feb 16, 2017 10:41 am
by pcsiquiero
CanShrink was already set to true.
DockStyle when I change to Top the component ignores the position of the other components overlapping them
Aleksey wrote:Hello,

Please try to set the DockStyle property as Top and CanShrink to true.

Thank you.

Re: Hide SubSport when DataSource has no data

Posted: Thu Feb 16, 2017 11:11 am
by pcsiquiero
Solved. I put the information from the top of the DataBand inside a Panel Component and changed the DockStyle to Top. I did the same with each SubReport by placing them in Panels with the DockStyle property set to Top.
On all Panels, I've changed the CanBreak, CanGrow and CanShrink properties to True.
In this way, all positions were retained and white space was hidden in the report view.
pcsiquiero wrote:CanShrink was already set to true.
DockStyle when I change to Top the component ignores the position of the other components overlapping them
Aleksey wrote:Hello,

Please try to set the DockStyle property as Top and CanShrink to true.

Thank you.

Re: Hide SubSport when DataSource has no data

Posted: Thu Feb 16, 2017 12:12 pm
by Alex K.
Hello

Ok.
Please let us know if you need any additional help.

Thank you.