Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box in a grid
Message
 
To
22/09/2002 13:02:27
Andrew Fell-Gordon
Calypso Publications Ltd
Enfield, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00703146
Message ID:
00703195
Views:
13
You don't need a custom class to do this. You can set these properties in the instance.

>You will need to create a custom combo class.
>RowSource = country.name,code
>BoundColumn = 2
>ColumnWidths = 50,0
>ColumnLines = .F.
>
>This will create a combo that will show the country names in the list but store the contrry code
>
>Add this combo to the grid instead to the standard combo. If you only want the user to see the country names and not the codes you will need to set the column's Sparse property to .F.
>
>When you change the selection in the combo the county field in the grid's table will be changed to the code from the combo
>
>Best regards
>
>Andrew
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform