Check documentation for the latest version of dhtmlxSuite setColspan DHTMLX Docs

setColspan

dynamically sets colspan in a row starting from the specified column index

void setColspan(string| number row_id,number col_index,number colspan);
row_idstring| numberthe id of a row
col_indexnumberthe index of a column
colspannumberthe size of colspan

Available only in PRO Edition

Example

mygrid.enableColSpan(true);
//merge first 2 cells in the row with the id "row1"
mygrid.setColspan("row1",0,2);

Back to top