How to show headers in each page of the report in Microsoft Report Viewer

Bastardo picture Bastardo · Mar 29, 2011 · Viewed 40.7k times · Source

I am trying to create some reports, and I want to show the headers in each page of the reports. I create a table and the uppermost row becomes my header, but it is only shown for the first page of the report.

The only thing that can be seen in each page are page headers and page footers, but these parts do not allow a table inside them. All I can use for my work on a page header is a textbox.

I tried to write my headers into some texboxes and put them side by side, but then the report data drifts from the headers' bounds.

How do I fix this problem?

Answer

yeasir007 picture yeasir007 · Apr 24, 2012

In your .rdlc report there is small down arrow at the bottom right corner with red box, you need to click on “Advanced Mode”. enter image description here

By clicking, your row and column groups will expand with new fields named “Static” as shown below: enter image description here

Now, click “Static” in Row Groups list, and check the properties on the right side: Set “RepeatOnNewPage” to “True” and “KeepWithGroup” to “After” as shown below: enter image description here

Now, repeat above procedure for all “Static” rows in Row Groups list, except the “Static” rows present under the different group (encircled with black color in following figure), do same for the Details group (encircled with red color): enter image description here

This enables you to view Header Row on each page of .rdlc report.