w:tblHeader (Table Header Row)

Marks the row as a header row that repeats at the top of each new page the table spans.

Parent elements

Description

w:tblHeader marks the containing table row as a header row that is repeated at the top of the table when it spans multiple pages. It is an on/off toggle property defined in ECMA-376 Part 1 §17.4.49.

This must be set on every contiguous row from the top of the table that is to be treated as a header. The header repeat is suppressed if the row would be the only row on a page, or if the table does not span a page break.

Attributes

Attribute Type Possible Values Description
w:val ST_OnOff true, 1, on (enabled) / false, 0, off (disabled). Omitting the attribute is equivalent to true. Toggles header-row repeat on or off.

Examples

<w:trPr>
  <w:tblHeader/>
</w:trPr>

Notes

  • All header rows must be contiguous and start from the first row of the table.
  • This is a row property (w:trPr child); do not confuse with the table style’s first-row conditional format.