ComboBox Select Method
Posted on 2011-05-02
I have a DGV with two combobox columns. Once the DGV is loaded, my first selection in the first combobox is selected by the drop-down. After that, when subsequent comboboxes have focus, I can press the space bar and the selection from the previous combobox is shown. However, if I TAB off of this combobox, the combobox goes blank. I suspect that pressing the spacebar will cause the combobox to show the previous selection, but it does not actually SELECT what is shown in the combobox.
How can I have the combobox actually select what is shown when the spacebar is pressed so it will not go blank when the focus is lost (by TAB or RIGHT/LEFT ARROW) to the next column?