How to Hide or Suppress Group Header if No Records in Group Header Band
Please Help me, How to Hide or Suppress Group Header if No Records in Group Header Band?
This discussion has been closed.
Please Help me, How to Hide or Suppress Group Header if No Records in Group Header Band?
Comments
Hello!
In FastReport .NET, the GroupHeaderBand group header only groups records that have been filtered by a child DataBand. Therefore, to prevent an empty group from appearing, set the filter condition directly in the DataBand.Filter property (rather than by hiding fields inside BeforePrint):
dataBand.Filter = “[Items.Category] != \”EmptyCat\“”;
After that, empty groups will not be created at all, and the corresponding GroupHeaderBand will not be printed.