Suppress GroupHeader for master records without detail rows
Posted: Thu Feb 19, 2026 11:44 am
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?
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?