Home Forums WinForms controls Xceed Grid for WinForms ComboBoxViewer || WinComboBox Reply To: ComboBoxViewer || WinComboBox

User (Old forums)
Member
Post count: 23064

“raise an event for this combo box and test SelectedIndex”

Hi,
would the following code work for you?

WinComboBox combo = new WinComboBox();
combo.SelectedIndexChanged += new EventHandler
(combo_SelectedIndexChanged);
myColumn.CellEditorManager = new Xceed.Grid.Editors.ComboBoxEditor(combo);

Within the event handler combo_SelectedIndexChanged, you can test for the SelectedIndex and do what you want in case the “New” entry has been selected.

Regards, Mario

Imported from legacy forums. Posted by mario.muja (had 3087 views)