Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 - Diff. ControlSource of Col and contained CBO
Message
De
05/06/2003 06:43:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00796529
Message ID:
00796555
Vues:
11
:) If this means you don't want to sparse = .f. then you might check tricky ways (not sure how good it would be - still should increase rowheight) :
*Column
  .Bound = .f.
  .Controlsource = "(iif(seek(mytable.id,'LookUp','pk'),"+;
       "Lookup.Desc,'')"
  .CurrentControl = 'cbo'
*Column.Text1
  .Controlsource = "(iif(seek(mytable.id,'LookUp','pk'),"+;
       "Lookup.Desc,'')"
*Column.Cbo   
  .Controlsource = 'myTable.id'
  * others as should be
Cetin

>I'd love to see this work. Thanks Cetin keep you posted. I guess we had discussed sparse before, but I have some mental block against sparse as it modifies the grid's appearance and then you have to set cbo properties of style & others to make it look normal <g>.
>
>>
>>Change the order of columns in combo. Combo always displays the first column as DisplayValue (and incremental search works on it).
>>ie: If it's : ID, Desc and bundcolumn =1
>>Make it : Desc, ID and boundcolumn = 2
>>
>>If this is not the problem you describe, check column.sparse and set to .f.
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform