dhtmlxgrid

Hi,



Is it possible to add an image on a column for each row in the datagrid?



Best regard,



Emilie Meunier

You can use “img” eXcell type:
mygrid.setColTypes(“img”);

In xml:
some.gif
Please see more infomation here dhtmlx.com/docs/products/dhtmlxG … cellstypes

Also any html can be stored inside CDATA in the tags:
<cell><![CDATA[]]></cell>


Ok, is it possible to put colspan in the header? Because I want 5 columns for the header and 5 columns in the datagrid including the image. See the attachment file.



Thanks,



Emilie



You can colspan header with #cspan command:
mygrid.setHeader("General>Parcs,#cspan,#cspan,#cspan);
mygrid.attachHeader(“Nom,Ancient nom,Creation,Modification”);

Thanks for the sample. Is it possible to use movecolumn instead of using colspan in the header? Can I use getColumnId to move column instead of index?