Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo in Grid with free tables
Message
From
04/05/2002 22:39:07
Mike Smith
Doncaster Office Services
Oakville, Ontario, Canada
 
 
To
27/04/2002 12:44:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00650002
Message ID:
00652853
Views:
19
Carlos

I have never built a Grid programatically but I can give you the steps with the Form Controls and these steps may relate to the programatic approach.

1) Click on the grid form control icon and then draw a rectangle on your form to create a Grid

2) Click on View | Data Environment and add your free table(s)

3) Right Click on the Grid and Click Builder and make your Grid

4) Right Click on the Grid and Click Edit

5) Click on the Combo Box Icon and then plant the combo box on the column of interest

6) Right Click on the Grid and Click Properties and then navigate to the column where you added the grid. You should see the reference to the Combo Box in the list when viewing the Grid elements in the upper box.

7) Suppose you added the Combo Box to column 2. Click on Column 2 of the Grid elements, then click the All Tab in the properties screen and then navigate to Current Control.

8) Now click on the box to the right of Fx and you should have a choice of Text1 or Combo1. Select Combo1 to make it the Current Control.

9) Now click on the Combo1 element of the Grid and then click the Data Tab on the property screen where you can set up the Control Source that it will link to, the Record Source for the combo list itself and the Row Source type.


If you don't do any of these steps properly with the form tools, then the Combo won't work.

If you are building the grid programatically (even though I have never done one) I suspect the program code has to address each element and property the same way.

HTH

Mike Smith
Previous
Reply
Map
View

Click here to load this message in the networking platform