Hide SubSport when DataSource has no data

Stimulsoft Reports.NET discussion
Post Reply
User avatar
pcsiquiero
Posts: 5
Joined: Fri Feb 10, 2017 11:25 am
Location: São Paulo / Brazil

Hide SubSport when DataSource has no data

Post 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?
Attachments
image1.jpg
image1.jpg (94.99 KiB) Viewed 2446 times
image2.jpg
image2.jpg (74.57 KiB) Viewed 2446 times
Paulo Siquiero
Developer and Consultant
São Paulo / Brazil
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Hide SubSport when DataSource has no data

Post by Alex K. »

Hello,

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

Thank you.
User avatar
pcsiquiero
Posts: 5
Joined: Fri Feb 10, 2017 11:25 am
Location: São Paulo / Brazil

Re: Hide SubSport when DataSource has no data

Post 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.
Paulo Siquiero
Developer and Consultant
São Paulo / Brazil
User avatar
pcsiquiero
Posts: 5
Joined: Fri Feb 10, 2017 11:25 am
Location: São Paulo / Brazil

Re: Hide SubSport when DataSource has no data

Post 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.
Paulo Siquiero
Developer and Consultant
São Paulo / Brazil
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Hide SubSport when DataSource has no data

Post by Alex K. »

Hello

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

Thank you.
Post Reply