Setting dropdown indexes in Combo Box embedded in a datagrid

Hello,

I’m trying to set the selected index on a combo box embedded in a datagrid.

I’m trying this code:

data_grid.column_w_combobox.selectedIndex = 2;

Is their something I’m missing?