How to manage two row in databand

Stimulsoft Reports.NET discussion
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

How to manage two row in databand

Post by socotek »

Hello,
we would like to "hide" the second row when the field value is 0 or blank. In Stimulsoft Report .NET version 2009, we did it, only positioning the fields under the DataBand and for each fields set Condition where field are zero or blank then the field is not enabled. You can see, in Image1 attached, that the field under DataBand are, in Report Tree element of the DataBand.
In my new report (designed with Stimulsoft Report .NET version 2014 Trial) this behavior doesn't happen (see Image2 attached).

Any suggestion?

Thank you very much,
Luca
Attachments
Image2.PNG
Image2.PNG (133.19 KiB) Viewed 4061 times
Image1.PNG
Image1.PNG (120.61 KiB) Viewed 4061 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to manage two row in databand

Post by HighAley »

Hello.

Did you set the Can Grow property of the data band to false?
If yes, we need to see a sample report template with data which reproduces the issue.

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: How to manage two row in databand

Post by socotek »

In both examples we did not set Can Grow property to false. It is set to default value: true.

Thanks,
Luca
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to manage two row in databand

Post by HighAley »

Hello, Luca.

We need to see a sample report template with data which reproduces the issue.
Please, send it to us.

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: How to manage two row in databand

Post by socotek »

Hello,
in attachment you can find the example with data (I used an SQL Connection with fixed data).
In the page named pgDettaglioStrumentiFinanziari_2 you can see the problem with text box no associated to the Databand.

Thank you very much,
Luca
Attachments
DataBand_Test.mrt
(196.03 KiB) Downloaded 240 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to manage two row in databand

Post by HighAley »

Hello, Luca.

Sorry, maybe we don't understand your problem.
Could you describe it more detailed?

Thank you.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: How to manage two row in databand

Post by socotek »

Hello,
with the last prerelease builds, the problem seems fixed.

Thank you for your availability,
Luca
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: How to manage two row in databand

Post by Andrew »

Dear Luca,

Thank you for this information. If you meet this issue again, please let us know.
socotek
Posts: 56
Joined: Thu Jun 26, 2014 9:40 am

Re: How to manage two row in databand

Post by socotek »

Hi all,
I have a DataBand with fields from a single Data Source placed in 4 rows (see example).
We need to display only one row for each Data Source record (depending on the value of some fields of Data Source), the other 3 rows must be suppressed (i.e. we do not want blank lines, lines must disappear).

In the example for the record that contains FTEMP GL BOND I USD we obtained disappearance of line 3 and 4 but as you can see line 1 don't disappear.

Many thanks
Monica
Attachments
DataBand_EmptyRow.JPG
DataBand_EmptyRow.JPG (66.5 KiB) Viewed 3858 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: How to manage two row in databand

Post by HighAley »

Hello.

If you disable text component by Conditions Can Shrink property doesn't work.
Please, try to add Panels like on the attached report template.
We set the Shift mode property of the Text2 component to Increasing Size, Decreasing Size.

Thank you.
Attachments
Report.mrt
(5.26 KiB) Downloaded 212 times
Post Reply