Rowpine for TanStack Table
Buy a license
DocsExcel

Headers and column widths

Updated November 13, 2026rowpine 1.0.3
Edit on GitHub
An exported pivot whose headers read Q1 / Units and Q1 / Avg order
An exported pivot whose headers read Q1 / Units and Q1 / Avg order.

The header row is built from your column definitions:

  • A string header is used as is.
  • A function header cannot be written to a file, so set meta.rowpine.header; otherwise the column id is used.
  • Columns inside header groups get the group names joined with /. In the image, the pivot's Units column under the Q1 group becomes Q1 / Units. One header row keeps the sheet easy to filter and sort.

Column widths come from TanStack's column sizes (size in the column definition, or the width after the user resizes). Set meta.rowpine.width (pixels) to give the file a different width than the screen.

Live example and sourceRun this in the browser and read the code behind it.Open →