Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo in a grid
Message
From
08/02/2001 13:19:34
 
 
To
08/02/2001 11:34:55
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00474018
Message ID:
00474088
Views:
18
Here is some code that works:

*add the control and make it the current control
*the first argument is the name of the new control, the second is the name of the class you want to use
thisform.apgrid1.column1.addobject('cboTest', 'combobox')
thisform.apgrid1.column1.CURRENTCONTROL = 'cboTest'

*put some data into the combobox
THISFORM.APGRID1.COLUMN1.CBOTEST.ADDITEM("ONE")
THISFORM.APGRID1.COLUMN1.CBOTEST.ADDITEM("TWO")

*make the combobox visible
THISFORM.APGRID1.COLUMN1.CBOTEST.VISIBLE = .t.

*refresh the grid
thisform.apgrid1.refresh()

Hope it helps.
Previous
Reply
Map
View

Click here to load this message in the networking platform