Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying value other than controlsource in grid
Message
De
08/02/1999 16:05:32
 
 
À
08/02/1999 15:57:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00185208
Message ID:
00185262
Vues:
20
A really goofy way to do this is to bind on the descriptive field (resolves what's displayed) and use a view and do a REPLACE on the key on LostFocus. This is what I've been forced to do in the past.

>>>>I think that sparse property should do this. Also, there is really another way to do this job:
>>>
>>>Sparse shows the boundcolumn, which is the surrogate key. I don't want to display the surrogate key.
>>>
>>>I want to change the key value, but display the discriptive value.
>>
>>Currently, I use the next column to display the discriptive field. It's ControlSouce is bound to the surrogate key in the lookup view. I use the second view and set a relation to it to avoid having to requery every time the user changes the supervisor. I only requery after the user choses to do an update. The user can change many records before update.
>
>Sorry, the only thing I understand is that you set some relations. Whatever these relations are, you should not use them within a grid: they will give you tons of funny-looking problems.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform