Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box in grid doesn't show programmatically added va
Message
 
À
18/12/1997 15:02:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00066999
Message ID:
00067049
Vues:
27
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform