Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ComboBox in grid
Message
From
02/06/2003 11:34:01
 
 
To
28/05/2003 18:03:37
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00793698
Message ID:
00795260
Views:
20
>Hi Christian.
>
>I'm using a grid with comboboxes, and what happens is, that the value will be the recordnumber instead of the value form the key field.
>
>Are you saying that you don't want the value to be the record number? If this is the case, you need to set teh BoundTo property of the combo box to .T.

Thanks, the BoundTo property does work, but there are new problems coming up. The DisplayValue of the combobox gets empty when the control gets the focus, and the lengh of the display value is limited to the lengh of the bound field.
I solve this the following way: I increase the bound field from N(10) to N(20), so the combobox can display 20 characters (which is luckily enough) and I populate the combobox with AddListItem(), so it does not get empty upon GotFocus (strange behavior).
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform