Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement