Column Type CO Examples

I’ve spent a lot of time trying to figure out how to use column type CO in a grid with no success. Can someone point me to an example that shows I initialize the possible values of the pulldown - thank you.

<link rel="stylesheet" type="text/css" href="../api/dhtmlxGrid/codebase/dhtmlxgrid.css">
<link rel="stylesheet" type="text/css" href="../api/dhtmlxGrid/codebase/skins/dhtmlxgrid_dhx_skyblue.css">

<script src="../api/dhtmlxLayout/codebase/dhtmlxcommon.js" type="text/javascript"></script>
<script src="../api/dhtmlxGrid/codebase/dhtmlxgrid.js"></script>
<script src="../api/dhtmlxGrid/codebase/dhtmlxgridcell.js"></script>

<script src="../api/dhtmlxDataProcessor/codebase/dhtmlxdataprocessor.js"></script>
 
<div id="gridbox" style="width:600px;height:270px;overflow:hidden"></div>
            
            
<script>

//init grid and set its parameters (this part as always);
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../../codebase/imgs/");
mygrid.setHeader("USOC,Description,Vendor,Priority");
mygrid.setInitWidths("50,150,120,80");
mygrid.setColAlign("right,left,left,left");
mygrid.setColTypes("ed,txt,co,txt");
mygrid.setSkin("dhx_skyblue");
mygrid.setColSorting("int,str,str,str");
mygrid.init();
mygrid.loadXML("v_get.php");

myDataProcessor = new dataProcessor("update.php");
myDataProcessor.init(mygrid);

</script>

Here you can find a working example of “coro” (the same as “co” but read-only) column in the dhtmlxgrid.
dhtmlx.com/docs/products/dht … _grid.html
Please, refer to the “Shipping” column.
The logic is:
mygrid.getCombo(5).put(2,“two”); // add an option to the collection
where:
“5” - index of the column with co/coro
“2” - value of the option/value of the cell
“two” - title of the option displayed in the select list and in the grid cell

Here you can find a detailed tutorial:
docs.dhtmlx.com/doku.php?id=dhtm … n_from_xml