Posted 7 May 2020, 6:23 am EST
How to merge column names in SpreadJS table
Forums Home / Spread / SpreadJS
Posted by: vinayakbagi on 7 May 2020, 6:23 am EST
Posted 7 May 2020, 6:23 am EST
How to merge column names in SpreadJS table
Posted 8 May 2020, 9:37 am EST
Hi,
You may use the add span method to merge cells. Please refer to the following code snippet and the sample demonstrating the same:
sheet.addSpan(rowIndex, colIndex, 1, colCount);
https://codesandbox.io/s/flamboyant-curie-3ynii
API reference:
• addSpan method: https://www.grapecity.com/spreadjs/docs/v13/online/SpreadJS~GC.Spread.Sheets.Worksheet~addSpan.html?
Regards