The Group Header and Group Footer bands are shown above and below each group. Usually, you don't need to manually manage these bands, as they are auto-created via the Group and Sort Panel.
You may use the Group Header bands for grouping by multiple data fields in one of the following ways.
Add several Group Header bands. Specify one group field for each of these bands.
This results in nested grouping of the reports data.
Specify several group fields for the Group Fields property of the Group Header band. The data will be grouped by certain combinations of field values.
The Group Footer band is unnecessary without the corresponding Group Header band, to which its properties are similar. The Group Footer can be used to display group totals, or group page numbers.
In the Property Grid, the properties of both these bands are divided into the following groups.
- Background Colour
Specifies the background colour for the controls contained within the band. This option is also available in the Formatting Toolbar
- Borders, Border Colour and Border Width
Specify border settings for the controls contained within the band.
Specifies the font settings for the controls contained within the band. Some of these settings are available in the Formatting Toolbar.
- Foreground Colour
Specifies the text colour for the controls contained within the band. This option is also available in the Formatting Toolbar
- Formatting Rules
Invokes the Formatting Rules Editor allowing you to choose which rules should be applied to the band during report generation, and define the precedence of the applied rules.
Specifies indent values which are used to render the contents of the controls contained within the bands.
- Style Priority
Allows you to define the priority of various style elements (such as background colour and border colour).
This property allows you to define odd and even styles for the controls contained within the bands, as well as to assign an existing style to them (or a newly created one).
- Text Alignment
Allows you to change the text alignment of the controls contained within the bands.
- Group Fields
This property is available for the Group Header band only. It invokes the Group Field Collection Editor, allowing you to add and remove grouping fields, define data fields to be used as grouping criteria and the grouping order (ascending or descending).In most scenarios, it's quick and practical to use the Group and Sort Panel, rather than manually adjust the band's group fields collection. However, this is the only way to assign multiple group fields to a single Group Header.
- Group Union
Determines whether group rows can be printed on different pages (in this case both Group Union and Group Footer Band.Group Union are set to None), or the entire group will be printed on a single page (if the Group Union is set to Whole Page).Also, if a group can be split across pages, but you don't want a Group Header to be printed on a page if there is no data row below it (in case a group starts at the bottom of the page and there is enough room for only a Group Header), you may set the Group Union to With First Detail. In this case, if a Group Header is alone on a page, it will be moved to the beginning of the next page. It is the same for the Group Footer. If you don't want it to be printed alone on a page, you may set its Group Union to With Last Detail, and the last group row from the previous page will be moved to the next page to be printed together with a Group Footer. This property is quickly accessible via the bands Smart Tag.