Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox in grid
Message
 
 
À
28/05/2003 18:03:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00793698
Message ID:
00795260
Vues:
17
>Hi Christian.
>
>I'm using a grid with comboboxes, and what happens is, that the value will be the recordnumber instead of the value form the key field.
>
>Are you saying that you don't want the value to be the record number? If this is the case, you need to set teh BoundTo property of the combo box to .T.

Thanks, the BoundTo property does work, but there are new problems coming up. The DisplayValue of the combobox gets empty when the control gets the focus, and the lengh of the display value is limited to the lengh of the bound field.
I solve this the following way: I increase the bound field from N(10) to N(20), so the combobox can display 20 characters (which is luckily enough) and I populate the combobox with AddListItem(), so it does not get empty upon GotFocus (strange behavior).
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform