Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox problem - BoundColumn??
Message
De
24/08/1998 14:51:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00129328
Message ID:
00129432
Vues:
31
Text portion of combo will always show the first column (DisplayValue), and combo.value traces the boundcolumn. So, if you switch columns you can the needed result, right? Also, you can make a trick and show second column as first one by setting ColumnWidth=0

>I already have this. The dropdown of the combobox has 2 columns showing Building Desc and Building #. I need the textbox part of the combobox to show the Building # but it shows the Building Desc instead. Any ideas?
>
>>Set two column widths (e.g., 200,75) in the ColumnWidths property and the box will display both columns.
>>
>>>I have a combobox with the following settings:
>>>
>>>RowSourceType=3 - SQL Statement
>>>RowSource=SELECT Buildesc, Buil FROM Buil WHERE STR(Buil.Proj,4)=mcproj ORDER BY Buildesc INTO CURSOR cBuilList
>>>BoundColumn=2
>>>BoundTo=.T.
>>>ControlSource=Builinfoview.Buil
>>>
>>>What I am trying to do is allow the user to access the combobox items based on Buildesc because the users know the names better than the number. But I want the combobox to show the Building number (Buil). Any ideas? TIA
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform