Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 - Diff. ControlSource of Col and contained CBO
Message
 
À
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:
00796559
Vues:
14
Hiya

I haven't done it your way, but if you mean that I should switch controlsouce of the col. at runtime, then maybe it was me, but I failed. I had put this.parent.controlsource = "view.cDesc" in the init of the cbo as well as lostfocus but couldn't get it to stop display if ID.

>:) 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
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform