Suppress GroupHeader for master records without detail rows

Stimulsoft Reports.WPF discussion
Post Reply
melzer
Posts: 18
Joined: Wed Oct 03, 2012 9:07 am

Suppress GroupHeader for master records without detail rows

Post by melzer »

I have a Master DataBand with a related Detail DataBand (linked via MasterComponent and DataRelation).
PrintIfDetailEmpty = false on the Master band works correctly — master records without details are not printed.

However, I also have a GroupHeaderBand above the Master band.
The GroupHeader is still printed even when the corresponding master record is suppressed because it has no detail records.

I tried using Conditions on the GroupHeader with expressions like:

Count(...) == 0
Totals.Count(...) == 0

but the values evaluated in Conditions seem to differ from the values shown when the same expressions are placed in text components.

Goal: suppress the GroupHeader when the master record has no related detail records.
Is there a recommended way to bind GroupHeader printing to the actual presence of detail records after PrintIfDetailEmpty is applied?
Lech Kulikowski
Posts: 7683
Joined: Tue Mar 20, 2018 5:34 am

Re: Suppress GroupHeader for master records without detail rows

Post by Lech Kulikowski »

Hello,

We need some time to investigate the issue, we will let you know about the result as soon as possible.

Thank you.
#19540
Post Reply