If you're grouping by something, you should put your headers in the group header, and switch on the Repeat Group Header on Each New Page option. (Right click the group, Change Group).
This will automatically give you the headers every time the subtotal is displayed and when you start a new page, rather than you having to faff around with getting it to work in details sections.
Naith