DHTMLX Grid : Combine the content of two cells.

Hi,

I want to combine the content of two or more SELECTED cells in grid.

How to do it ?

Not sure what do you mean by “combine”, but cells can be combined horizontaly by colspanned
grid.setColSpan(id,index,length)
or verticaly, by
grid.setRowspan(id,index,length)





dhtmlx.com/docs/products/dhtmlxG … 7858317000

Hi,
    Actually I want to have “Merge Cells” feature of MS Excel which works for SELECTED cells. How to achieve it ?

Grid selection modes doesn’t allow to select just a group of cells.
The selection based on rows, so the grid can have one or mutliple selected rows, and ony one selected cell in same moment of time. There is no ready to use UI for multi-selection of cells ( block - selection feature purposed for clipboard operations only )

Hi,
    I think its possible to select a group of cells using .enableBlockSelection(), Right ???

Yes, but this functionality highly oriented on clipboard operation
Technically it possible to get coordinates of selecte area and perform some action against it

dhtmlx.com/docs/products/kb/inde … LeftTopRow