Some question about Combobox

I use mygrid.setColTypes(coro);

1.How can I set default value?
I use
mygrid.getCombo(6).put(0,“Action”);
mygrid.getCombo(6).put(1,“Cancel”);
mygrid.getCombo(6).put(2,“Execute now”);
mygrid.getCombo(6).put(3,“Move to history”);

But it will show notthing.
Just show 4 option when I click the cell.
How can I show the default value in the initial?

2.How can I show the coro in normal look?
Like this…java2s.com/Code/CSharpImages … mboBox.PNG
Because coro like normal cell before be clicked.
I want it look like normal combobox.

3.How can I disable scroll bar?
Even few options,it will show useless scrollbar.
How can I disable it?

Thank you very much!!

How can I show the default value in the initial?
Grid will use existing value of the cell as default one.
If you adding new row, you can use

grid.addRow(“123”, []);
grid.cells(123,6).setValue(2)

as result - “Cancel” will be preselected

2.How can I show the coro in normal look?
Can be done by creating custom excell.

3.How can I disable scroll bar?
grid.objBox.style.overflowX = grid.objBox.style.overflowY = “hidden”;

If it is not addrow.
It is existed cell.
How can I setup?

Any example?

It is not work.
Still display…
The grid scrollbar is disappear.
I want to coro’s scroll bar disappear,not grid.

And one more question.
4.How can I let coro option objbox be wider?

Thank for your paitent.

It is existed cell.
grid.cells(row_id,6).setValue(2)
where row_id - id of row in question.

I want to coro’s scroll bar disappear,not grid.
Can be done by custom excel or you can change in dhtmlxgridcell.js

this.list.size=“6”;

with

this.list.size = this.list.options.length;

Thank you!!
grid.cells(row_id,6).setValue(2) is work!!

Thank for your paitent.

I changed dhtmlxgridcell.js,
the length is changed,but scrollbar still showed.

And,
how can I autosize or change the width of coro option list??

the length is changed,but scrollbar still showed.
This is the only value which controls the height of select list ( there is no any other height styles )

how can I autosize or change the width of coro option list??
by default, width of the column is used

dhtmlxgridcell.js
this.list.style.width=this.cell.offsetWidth+“px”;