Dynamic colspan in header

Hello,

is it possible to set the colspan dynamic in subheader?

I’ve this grid:

(...)
mygrid.setHeader("Main col1,#cspan#cspan,#cspan,#cspan,Main col2,#cspan,#cspan,#cspan,#cspan);
mygrid.attachHeader(row1a,row1b,row1c,row1d,row1e,row2a,row2b,row2c,row2d,row2e);
mygrid.enableColSpan(true);
mygrid.init();

Now i would like to hide some columns like this:

mygrid.setColumnHidden(1,true);
mygrid.setColumnHidden(2,true);
mygrid.setColumnHidden(3,true);
mygrid.setColumnHidden(4,true);
mygrid.setColumnHidden(6,true);
mygrid.setColumnHidden(7,true);
mygrid.setColumnHidden(8,true);
mygrid.setColumnHidden(9,true);

The columns will be hidden but the main header has an incorrect view.
So i tried

mygrid.setColspan(0,0,4);

but that crash. :cry:

Regards, Carsten

This is known limitation. There is no way to hide column correct if this column is merged with other column in the header.