Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
About combo box
Message
From
02/07/2001 10:06:27
 
 
To
02/07/2001 09:53:58
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00525861
Message ID:
00525868
Views:
19
Hi!

Fill no rows in the combobox. Put a grid on the form and design it to look like a list (see How to make a grid appear like a list similar to list box), then make it invisible (Visible = .F.). Put nodefault in the DropDown event of the combobox and show grid in there. In the grid in the Click event of any control inside columns hide the grid. I can bet you can figure out where to put code to save selected value in the Value field of combobox and in the data field, as well as where to put code to get data. Note that you will require separate alias for grid-like list and need to locate the record in that alias to highlight the current selection in the combobox.
Finally, to display selected value in the combobox, just clear combobox using its clear method, add the item to combobox on the fly than use '...ControlSource=...ControlSource' for combobox to refresh its value correctly (refreshing by other way can spoil certain things).

Hope this is enough to start work.

>hi,
>i have made a combobox with the columncount 4 since i want four field over there. what i want is that can i make all column like grid because in grid my focus remains on one coloum but in combobox my focus is all 4 coloumn i.e it is highlighted.
>thanku
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform