Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo in a grid
Message
De
08/02/2001 13:19:34
 
 
À
08/02/2001 11:34:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00474018
Message ID:
00474088
Vues:
17
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform