Quote:
but above code will have only header rows
why ? you need to re-do your data processing loops, that's all.
On the first loop (the header row) ie 'firstRow', you store the result of this split/chunk for the headers.
You then get the data row, you said there was only one, yes ? so you apply this function to your data row.
You then loop through the data row 'split', for each iteration, get the split by index for the header row, build the table header, then process the data for that 'split'/chunk to add the relevant split/chunks for that set of columns
Don't be such a help vampire