Hello!
Please, check the following topics:
- Dynamic table with colspans
- Regarding adding dynamic row span and col span in Datatable Header
- Dynamic Rowspan
And if it doesn’t solve your problem, it would be much more helpful if you could clarify a little bit how do you expect it to look.
Have a great day!