DHTMLX Docs & Samples Explorer

setColspan(row_id, col_ind, colspan)

Required library edition: This method requires Professional Edition of the DHTMLX library
Required library file: dhtmlxgrid.js

dynamicaly set colspan in row starting from specified column index

  • row_id - row id
  • col_id - index of column
  • colspan - size of colspan

Note before using this method colspan should be enabled:

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

See also: setRowspan, enableRowspan, enableColSpan