The Group Headerand Group Footerbands are shown above and below each group. See Change or Apply Data Grouping to a Reportfor additional information.
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 report's data.
-
Specify several group fields for the Group Fieldsproperty 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. When present, it allows customization by providing a set of properties similar to those of the Group Header.
In the Property Grid, the properties of these bands are divided into the following groups.
Appearance
-
Background Color
Specifies the background color for the controls contained within the band. This option is also available in the Formatting Toolbar( ).
-
Borders,
Border Colorand
Border Width
Specify border settings for the controls contained within the band.
-
Font
Specifies the font settings for the controls contained within the band. Some of these settings are available in the Formatting Toolbar.
-
Foreground Color
Specifies the text color 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. To learn more on this, refer to Conditionally Change a Control's Appearance.
-
Padding
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 color, border color, etc.). For more information on style inheritance, refer to Understand Styles Concepts.
-
Styles
This property allows you to define odd and even stylesfor the controls contained within the bands, as well as to assign an existing style to them (or a newly created one). For more information on style inheritance, refer to Understand Styles Concepts.
-
Text Alignment
Allows you to change the text alignment of the controls contained within the bands. This option is also available in the Formatting Toolbar.
-
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 a data field to be used as a grouping criteria and the grouping order (ascending or descending).
This property is also accessible via the band's Smart Tag.
-
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 also accessible via the band's Smart Tag.
-
Keep Together
When this option is on, the report tries to fit the band contents entirely on one page, not allowing it to split across several pages. In general, if the contents are too large to fit on a single page, then the band is started on a new page, and continues on the following page.
-
Level
Specifies the nesting level of a group band. The lower the level number, the closer the group band is to the Detail band. The numeration starts at zero. It is the parameter that identifies the Group Header / Group Footer band pairs.
This property is also accessible via the band's Smart Tag.
-
Page Break
Use this property if the current report design requires that the band's section should be separated from previous sections or follow-ups. Specify the Before the Band or After the Band values to insert a page break before or after the current band. In many cases, this property may be used instead of the Page Breakcontrol.
-
Print at Bottom
This property is available for the Group Footer band only. It determines whether the band should be printed at the bottom of a page, or immediately after the last group's details.
-
Repeat Every Page
This property improves the readability of reports with group contents that are several pages long. Without a repeated group header at the top of the page, the report may be difficult to read.
This property is also accessible via the band's Smart Tag.
-
Scripts
This property contains events, which you can handle with the required scripts. For more information on scripting, refer to Handle Events via Scripts.
-
Visible
Specifies whether the bands should be visible in print preview.
-
Tag
This property allows you to add some additional information to the band; for example its id, by which it can then be accessible via scripts.
-
(Name)
Determines a band's name, by which it can be accessed in the Report Explorer, Property Gridor via scripts.
-
Height
Specifies the band's height, in report units.
Behavior
If a report contains several Group Footers with their Print at Bottom properties set to different values, then the outer Group Footer has the highest priority.
This feature is helpful when the Page Break property of the Group Header band is set to After the Band. In this instance each group starts a new page, and the Group Footer has two distinct places to reside - after the last row, or at the bottom of the page.
Data
Design
Layout
-
Background Color