Page 1 of 1

Totals in group footer only if databand has more than one row

Posted: Fri Nov 09, 2007 7:58 pm
by Fabio Pagano
I have a databand and a group header and a group footer. In the group footer i have put some totals. If the group is formed by only one row i don't want to make appear the group total (because it would be the same amount of the single row printed).

Any suggestion?

Thanks.

Totals in group footer only if databand has more than one row

Posted: Fri Nov 09, 2007 8:17 pm
by Brendan
Maybe something like the following behind the "BeforePrintEvent" of the Group Footer band

Code: Select all

GroupFooter1.Enabled = (Totals.Count(GroupHeader1) > 1)
where GroupHeader1 is the band that groups your data.
and GroupFooter1 is the component to hide. This could be your text component displaying the total sum. In this case the entire footer band won't be printed to the output