setting cell combo

hi,



i load data into a dhtmlxgrid using the loadxml method. i then want a column to have a combo so after i use the load xml statement i put the following:



var sexCombo = subjectsGrid.getCombo(4);

sexCombo.put(0,“M”);

sexCombo.put(1,“F”);



the data in the xml for this column is 0 or 1



however when the grid loads it displays the values 0 or 1 and not M or F.



to get round this i have had to use the following code



for(i=0;i<subjectsGrid.getRowsNum();i++)

{

subjectsGrid.cells(subjectsGrid.getRowId(i),4).setValue(subjectsGrid.cells(subjectsGrid.getRowId(i),1).getValue());

}



all this code is doing is getting the value out of the cell and putting it back in. this ensures that the M or F shows.



i prefer not having to do this extra loop, so is this a bug or am i doing something wrong



thanks

Be sure that
a) column type set as “co” or "coro"
b) combo.put commands called before data loading from XML
c) In XML you doesn’t have any extra content around 1 or 0