Try below steps,
Step 1). Wrap both headers in one Section.
Step 2). Check Include Header Row in Initial Page and Include Header Row in Subsequent Page property of Section in Pagination tab.
Step 3). Check Include Header Row in Initial Page for both the Headers.
Step 4). Set below to repeate first row of table as second header. $.DATA[0] will use to get first row.
Step 5). Bind your fields accordingly and you are done.
Hope this helps.