Page 1 of 1

Hide/Suppress a DataBand,GroupBand

Posted: Tue Aug 14, 2007 5:14 am
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)?







Hide/Suppress a DataBand,GroupBand

Posted: Tue Aug 14, 2007 5:20 am
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.

Hide/Suppress a DataBand,GroupBand

Posted: Tue Aug 14, 2007 5:34 am
by WilliamCcy
The Problem solve. Thanks Edward!
:biggrin:

Hide/Suppress a DataBand,GroupBand

Posted: Wed Aug 15, 2007 8:36 am
by Edward
Let us know if you need any help.

Thank you.

Hide/Suppress a DataBand,GroupBand

Posted: Wed Oct 15, 2008 11:08 pm
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.

Hide/Suppress a DataBand,GroupBand

Posted: Thu Oct 16, 2008 6:49 am
by Vital
Hello,

Please show your report.

Thank you.