Drag and drop the Table
report item from the item panel into the design area and assign the dataset to the table data region.
Click on the table surface to enable the Grouping Panel
in the design view.
Go to Row Groups
pane in the grouping panel and open the context menu on the Details
group field.
From the context menu, click on the Parent Group...
option under the Add Group
category.
Once you click on the Parent Group
option, a Table Group
dialog will be opened to configure the grouping.
Choose the dataset field in the Group by
drop-down list.
Select Add header
to add a header row to the group and select Add footer
to add a footer row to the group. And then click on the OK
button.
Now, a static row will be added above of the group in the table data region.
On report preview, the header will be added for each group as shown below.
You can display the group value in the group header of the table data region.
Merge Cells
option.
RepeatOnNewPage
property checkbox and set the KeepWithGroup
as After
.
On the report preview, the header will be added for each group as shown in the following image and the header will repeat in a new page if the group values exceed the existing page.