Multirow header
You can create multi-line header by using attachHeader js command
You can create multi-line header by using attachHeader js command
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxgrid.css"> <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxgrid_dhx_skyblue.css"> <script src="../../codebase/dhtmlxcommon.js"></script> <script src="../../codebase/dhtmlxgrid.js"></script> <script src="../../codebase/dhtmlxgridcell.js"></script> <div id="gridbox" style="width:600px; height:200px; background-color:white;"></div> <script></script>mygrid = new dhtmlXGridObject('gridbox'); mygrid.setImagePath("../../codebase/imgs/"); mygrid.setHeader("Sales,Book,#cspan,Price,In Store,Shipping,Other Info,#cspan"); mygrid.attachHeader(["#rspan", "Title", "Author", "#rspan", "#rspan", "#rspan", "Bestseller", "Published"]); mygrid.setInitWidths("50,150,150,80,80,80,80,200"); mygrid.setColAlign("right,left,left,right,center,left,center,center"); mygrid.setColTypes("dyn,ed,ed,price,ch,co,ra,ro"); mygrid.getCombo(5).put(2, 2); mygrid.setColSorting("int,str,str,int,str,str,str,str"); mygrid.setColumnColor("white,#d5f1ff,#d5f1ff"); mygrid.setColumnMinWidth(50, 0); mygrid.setSkin("dhx_skyblue"); mygrid.init(); mygrid.enableMultiselect(true); mygrid.loadXML("../common/grid.xml");