Home › Forums › WinForms controls › Xceed Grid for WinForms › Select comboboxEditor
I am adding a combo box to a cell in the grid when the user clicks on a button outside the grid. My code:
ComboBox = New ComboBoxEditor() ComboBox.Items.Add(“hello”) ComboBox.Items.Add(“hello2”)
xg.DataRows(0).Cells(“column1”).CellEditorManager = ComboBox
ComboBox.TemplateControl.DropDownSize = New Size(100, 150)
This works fine; however, the user then has to click the grid-cell to see the combobox. How can I get the combo box to display without having to click on the cell.
Thanks in advance.
Imported from legacy forums. Posted by firstname.lastname@example.org (had 2056 views)
You have to set the cell to Edit mode. After, use the ActivatingControl event on the CellEditorManager to open the DropDown of the ComboBox.
Imported from legacy forums. Posted by CharlesB (had 2929 views)