Cannot leave focus for databound combobox with lookup table
Posted on 2007-08-11
I created a combobox (either by dragging from the database explorer or manually from the toolbox) that is bound to a personnel table with column called employer. I have a lookup table with the list of employers and their ID #s. The combobox control is set with the Datasource pointing to the employers binding source, with the data member the employers name and the value member the employers ID. When this app is run, i set the combobox to the correct employer - however at this time, i can no longer move focus to any other control and I'm forced to quit the application using the stop button on the debugger. I find its easy enough to set a lookup on a datagridview, but why is it so difficult for a single combo box?
- I can however, leave the box IF i change the contents of the box manually to an integer instead of the drop down text.