Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not again... but yes Combobox Question!!!
Message
From
01/09/1999 23:48:23
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Not again... but yes Combobox Question!!!
Miscellaneous
Thread ID:
00260456
Message ID:
00260456
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform