Nested groups

Top  Previous  Next

A nested group has several "Group header" bands. The last band contains the "Data" band:

 

group_nested

 

Every group header has its own group condition.

 

Creating a nested group can be done in the same way like an ordinary. In the first case, you create a simple group and add the nested group in the "Configure Bands" window. For this, select the existing "Group header" band, press the "Add" button and add another "Group header" band:

 

group_nested1

 

After this, call the editor of the added group and set up the group condition.

 

In the second case, you use the group expert which we have looked at already. Set the grouping condition and click the "Add" button. The wizard will add the new group to the existing one.

 

Printing of the nested group does not differ much from printing of an ordinary group. When printing data, FastReport will check all group conditions of all groups. If the condition changes, the corresponding group finishes and a new group starts printing.