Hide/Suppress a DataBand,GroupBand

Stimulsoft Reports.NET discussion
Post Reply
WilliamCcy
Posts: 10
Joined: Sat Jul 21, 2007 6:18 am
Location: Malaysia,KL

Hide/Suppress a DataBand,GroupBand

Post by WilliamCcy »

Hi all,

Currently im working on a report which have few groups to get the total amount of those group.
But the problem is, i just want to show the summary of those group, and hide data inside databand; or maybe group header.

i hv tried using the {Enabled = False} in databand properties, although the databand success hide but the calculation won't work.

Below is the scenario:

GroupHeaderBand1: Mini Market (1)

Databand1: Casher Amount
Casher(1) 1000
Casher(2) 1500

GroupFooterBand1: Mini Market (1) Sales Total = 2500

GroupHeaderBand2: Mini Market (2)

Databand1: Casher Amount
Casher(A) 1000
Casher(B) 3000

GroupFooterBand2: Mini Market (2) Sales Total = 4000

So, is there any way to hide the databand(s), and only show groupfooterband (summary of sales total)?






Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hide/Suppress a DataBand,GroupBand

Post by Edward »

Please set the height of necessary bands (e.g. GroupHeaderBand, DataBand) to zero. If the height of the GroupFooterBands is greater than zero, then as a result you will get results desired.

Thank you.
WilliamCcy
Posts: 10
Joined: Sat Jul 21, 2007 6:18 am
Location: Malaysia,KL

Hide/Suppress a DataBand,GroupBand

Post by WilliamCcy »

The Problem solve. Thanks Edward!
:biggrin:
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Hide/Suppress a DataBand,GroupBand

Post by Edward »

Let us know if you need any help.

Thank you.
bluecandy0608
Posts: 1
Joined: Wed Oct 15, 2008 10:53 pm
Location: HCM

Hide/Suppress a DataBand,GroupBand

Post by bluecandy0608 »

Oh, i've got the same problem ( I want to hide data ) and I used this code to hide:

for (int i = 0; i < reportItems.Count; i++)
{
if (reportItems.GetType().Name == "StiDataBand")
reportItems.Height = 0;
if (reportItems.Parent.GetType().Name == "StiDataBand")
reportItems.Height = 0;
}

The result is really good. However, when it compiles to show (especially when it connects data) it takes a long time (about 5 mins or more ) to complete.The data is not too much (time when showing all data without hiding is only 5 seconds). I don't know the reason why? Can anybody have experience about this? Please help me.
Thanks alot.
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Hide/Suppress a DataBand,GroupBand

Post by Vital »

Hello,

Please show your report.

Thank you.
Post Reply