views:

262

answers:

2

Hi, How do I repeat column header (captions) in RDLC reports?

It says here http://msdn.microsoft.com/EN-US/library/735D1EE7-3C89-46D8-A346-504DB10F33E1.aspx#TableNoGroups:

To repeat or freeze column headings for the tablix member, select the static row that is labeled (Static). The properties pane displays the properties for the selected tablix member. By setting properties for this tablix member, you can control how the first row repeats or stays in view.

However I've tried turning "RepeatOnNewPage" and "FixedData" on and off, and nothing happened (the column header still showed up only in first page). I'm using VS2010, thanks!

+1  A: 

I just had this same problem and found that you likely need to go a bit further from the standard properties (right-side dialog) into the Advance properties.

After selecting your Tablix, there should be a frame at the bottom showing Row Groups and Column Groups, with an arrow at the far right. Click the arrow and select advanced mode.

Now, the RowGroups section should show (Static) and (Details1), maybe more depending upon your Tablix. Select the static row and in the right-side properties window, there will be an option to RepeatOnNewPage.

After I did this, my column headers displayed as I expected.

Good Luck!

KDrewiske
Thanks for your reply. I've changed property "RepeatOnNewPage" of the (Static) row group, but the row header just doesn't show up in page 2, page 3.. only shows on page 1. Anything else I might missed?
deerchao
A: 

I have had this nagging issue in my bug list for months! I want to make it clear that KDrewiske gave me the solution so don't vote for me, but I can't seem to reply to deerchao's followup question. (Sorry, I'm new to the site)

In addition to KDrewiske's solution, I had to select the second row ('Details1' from the previous example) and turn KeepTogether to false.

I now get column headers on every page and can remove a pesky bug from my list!

Regards, bizzarry

bizzarry
Thanks. Still not working for me, Strangely. Here'are my property values: (Static): RepeatOnNewPage = True, Hidden = False; (Details): Hidden = False; all other properties are set to their default values (not shown as bold in property grid). And my VS version is: 10.0.30319.341. How about yours?
deerchao
I'm also using VS 2010. Specifically, 10.0.30319.1 RTMRel. All of my bold properties for the first Static row are: KeepTogether:True, KeepWithGroup:After, RepeatOnNewPage:True, Hidden:False. Settings for the second row (Details) are: Hidden:False. I also have a third row but I'm pretty sure that's just because of my particular table. It is indented under (Details) and the only bold property is: Hidden:false.
bizzarry