Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo in Grid Question ???
Message
De
05/09/2001 07:53:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00551338
Message ID:
00552415
Vues:
18
Hi Borislav.

I forgot to mention this in my previous reply:

>> When The Sprase = .t. The behaviour of the combo is OK but the Grid shows me a code not the Name. <<

This is what I would expect to happen since the grid column is bound to the code. If you want to set column.sparse to true, try setting up your column controlsource like this:

( IIF( SEEK( FirstTable.NumField, 'SecondTable', 'SecondTableIndex' ), SecondTable.Code, '' ) )

And set the column's Bound property to false.

Even though this has the effect of making the column read only, you will still be able to select different items in the drop down list. The reason is that ReadOnly only referes to portions of a control that accept text. A dropdown list does not accept text < s >.

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform