How to find which column belongs to which nested Header

I have a nested column headers and data as below:

I prepare my nested column array seperatly and data to go along with it seperately. I want to know how do I establish a relation between this column header and data on each column(that this column data belongs to this specific column index)


Data source can be array of arrays or array of object. Iam comfortable with both
I just want to know [[0,1]] 1 belongs to let’s say O column, so some kind of relation beween data and column.

Hi @maffan

Unfortunately there isn’t an API to get that kind of information.

Here’s a little workaround that you can use: https://jsfiddle.net/undfe5mj/1/