views:

1632

answers:

3

I want to place a combobox inside one column of a Xtragrid. I can bind the combobox to array but how do you bind the combox to the column?

+2  A: 

You can use ColumnEdit and put the proper repository. Then you can do the bindings to that repository.

+6  A: 

Use the ColumnEdit property of the column to asign a lookupedit control (new). The lookupedit control is the combo box you need.

Javier Suero Santos
In doing this you are creating a repository item, which is what is assigned to the edit control of the column
Jiminy
+2  A: 

In the ColumnEdit property of the column, add a (new) ComboBoxEdit. If you always want it visible, set the ShowButtonMode on the column to always.

This will create a repositoryItemComboBox1 object (that's default name) that you can add items to if you so choose to display in the dropdown list. i.e. repositoryItemComboBox1.Items.add("My Text");

SnOrfus