I have a typical combobbox in a typical grid to allow users to enter typical data. The problem is that when the combobox in the grid has focus, the displayvalue is not showing. When the form is loaded, the data displays fine in each combo in each row in the grid, but as soon as the grid receives focus, the combobox of the active row goes blank. The other rows display their data properly.
With the debugger open in a separate window, and watches set on the value and displayvalue of the combo, I can see the displayvalue switching between a legitimate value and 'blank' value when alt-tabbing between the app and debugger, giving focus to the combo in the grid. And of course, when taking the combo as is and putting it right on the form instead of in the grid, it works fine.
To isolate the problem I put in a little code in the InteractiveChange event of the combobox to set focus to a different control on the form. Unfortunately, that works just as expected; as soon as a value in the combo is selected, focus goes to a different control, and the value IS displayed.
The grid has 1 column, is populated from a cursor, with type of Alias. The combo has a rowsource type of Fields, with the rowsource being the displayed value field (char) and the data value field (int).
Any ideas? Thanks much!
Dan
With the debugger open in a separate window, and watches set on the value and displayvalue of the combo, I can see the displayvalue switching between a legitimate value and 'blank' value when alt-tabbing between the app and debugger, giving focus to the combo in the grid. And of course, when taking the combo as is and putting it right on the form instead of in the grid, it works fine.
To isolate the problem I put in a little code in the InteractiveChange event of the combobox to set focus to a different control on the form. Unfortunately, that works just as expected; as soon as a value in the combo is selected, focus goes to a different control, and the value IS displayed.
The grid has 1 column, is populated from a cursor, with type of Alias. The combo has a rowsource type of Fields, with the rowsource being the displayed value field (char) and the data value field (int).
Any ideas? Thanks much!
Dan