Using row and column span in a Table Control

Hi

I have a requirement to create a matrix form in AX and I am going with the table control. The requirement is to have each column header spanning two columns. Something like the below:

pastedimage1502791418620v1.png

I can see the colSpan and the rowSpan properties in the cell method of the table control, but can’t make it to work.

DataTable.cell(j,i).colSpan(2);

Is there a documentation or resource that I can follow to achieve this? Or if someone has done anything similar to this, please help.

Any insight would be appreciated.

Thanks

Aman Kedia