datagrid header/column misalignment.

I have a 14 column datagrid with the following setting:



mygrid.setInitWidths(",200,,,,,,,,,,,,*");

mygrid.setColAlign(“left,center,center,center,center,center,center,center,center,center,center,center,center,center”);

mygrid.setSkin(“modern”);

mygrid.setColSorting(“int,str,str,str,str,int,int,int,int,int,int,int,int,int”);

mygrid.setColTypes(“ro,ro,ro,ro,ro,ro,ro,price,ro,ro,ro,ro,ro,price”);





I want all columns except the second to be the same width, which they are now. However, the headers do not align with the column data unless I manually widen the header. How can I make the column data align to the left exactly with the correct header by default when the column data may be larger then the initial width?



thanks,

jeremy





Unfortunately problem can’t be reconstructed locally.
Please check attached sample - it uses the same code as in your case, but it works correctly.

1207135842.zip (89.9 KB)