Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display incorrect info in the grid
Message
De
05/02/2004 13:26:20
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
05/02/2004 11:18:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00874318
Message ID:
00874533
Vues:
11
I'd point to grocery.fruit_id.

>Hi Mike,
>
>Yes, my cbmo_fruit is displaying the right data. In my grid column, do I use the controlsource to point to fruit.fruit_desc? Right now, I have the column pointing to grocery.fruit_id instead.
>
>Thanks
>
>
>>When you place your cursor in the field, does it show the correct fruit? If >so, I believe you have the combo's right, but you need to change the Sparse >setting of the column containing the combo.
>
>>HTH
>
>>Hi All,
>>
>>I have a form which contains a grid and some combo box fields. I populate the two columns combo box in the init() of the form like the following...
>>
>>select fruit
>>for i = 1 to reccount()
>>With this.cmbo_fruit
>>.addlistitem(fruit_name,i,1)
>>.addlistitem(alltrim(str(fruit_id)),i,2)
>>endwith
>>endfor
>>
>>I stored the fruit_id into the table where I am currently using as the recordsource in the grid. Instead of displaying the name of the fruit like apple, lemon, etc..., I ended up displaying the fruit_id in the grid. The column's controlsource is assign to fruit_id. How can I fix this problem? TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform