Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Putting a Combobox in a grid
Message
From
23/07/2000 03:33:34
 
 
To
22/07/2000 16:43:05
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00395897
Message ID:
00395957
Views:
9
Hi Jimmy.

>> How do you replace the textbox control with a combobox control for the column of a grid? <<

Actually adding a combo box to a grid is very simple. First, make sure that your combo box class is available on the form controls toolbar: In the form designer, click on the View Classes toolbar button. (This is the button that looks like a set of books.) Select the Add option and find the appropriate class library in the open files dialog. Next, in the drop down list at the top of the property sheet, select the grid column that will hold the combo box. After clicking on the combo box in the form controls toolbar, click on the grid column into which you want to drop it. If you now look at the controls listed under that column in the property sheet, you will see the combo box that you just added. Using the Data tab of the property sheet, set the combo box as the CurrentControl for the grid column.

You may also want to check out my artocle in FoxPro Advisor's February 2000 issue that gives you a handy combo class especially for use in grids.

Marcia
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform