| Sample: dhtmlxGrid | Multirow header | dhtmlxGrid main page |

Setting multirow header with script

Extend Header

        //add second row to header
        mygrid.attachHeader("#rspan,Title,Author,#rspan,#rspan,#rspan,Bestseller,Published");
        mygrid.setSizes();
        //#rspan - include cell in rowspan
        //#cspan - include cell in colspan

Setting multirow header with XML (Professional Edition)

        ...
        <head>
            <beforeInit>
                <call command="attachHeader">
                    <param>#rspan,Title,Author,#rspan,#rspan,#rspan,Bestseller,Published</param>
                </call>
            </beforeInit>
            ...