Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not again... but yes Combobox Question!!!
Message
From
02/09/1999 03:31:19
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
01/09/1999 23:48:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00260456
Message ID:
00260489
Views:
13
>Hello,
>
>yes, its again a combobox question. I think UT should start all new separate thread for just combobox questions:-)
>
>Anyway,here's my problem.I have a combobox in grid.
>
>example.:
>
>I have grid for order line items . This grid has one column for product code which shows product name in dropdown from product.dbf
>so I have combobox as a currentcontrol for this column in grid
>
>here are the column properties
>
>controlsource : orderitems.product_id (field width C(6) )
>currentcontrol = combo1
>Sparse = .F.
>
>combobox properties
>
>rowsourcetype = fields
>rowsource = product.product_name,product_id
>boundcolumn = 2
>controlsource : orderitems.product_id
>Style = 2 (dropdown list)
>
>Above settings are working perfectly and i had no problems in that at all. Problem started when I changed combobox's style to 0 (dropdown combo) because I had to give enhanced interactivesearch.
>
>now when I select value from combobox, it only displays first six letters of product name in combobox.displayvalue.
>
>I have also solved this problem by changing following properties
>(Please let me know is there any other method to solve this problem or not?)
>
>column.controlsource = product.product_name
>column.bound = .f.
>
>This has solved the problem of displaying only six characters in displayvalue. but now new problem occurs that if my focus on combobox in grid and if I press right arrow it does not move cursor to next character . shift+end is also not working to select all text in combobox.
>
>If anyone have idea of what is going on wrong here,please help.
>
>thanks
>Mark
According to MS KB Q156771 it's by design :) MS's workaround as is :
...
To work around the problem, change the InputMask of the column to match the length of the field you are trying to display in the ComboBox. For the example above, set the InputMask of Column2 to:

= REPLICATE("X", 40)
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform