General information
Category:
Forms & Form designer
>>VFP 3.0b
>>
>>When I programatically change the value of a field in grid that is displayed with a combo box, the value does not display when focus is on the combo box. If the focus moves off, the value is displayed. If the focus ever returns, the value does not show.
>>
>>The value displays if the value is in the list of values for the combo box, otherwise no value is shown.
>>
>>Has anyone seen this behaviour and found a workaround or better yet solution to it?
>
>This is default behavior for a combobox. If the value of the field its tied to isn't in the list, nothing shows. The reason that it shows when focus is not on the cell, is that you have sparse set to .T., and the combobox isn't the control showing the value... the default textbox is.
Ahhhh.... interesting.
So the only ways to get the value to show
- move focus off the combo box after choice has been made
- modify the combo's list of values to include the new value (temporarily)
Arg.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only