Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
With the IDE i put a combobox into a column. (column2 now has header1,text1 and combo1)
A init of my form i did:
thisform.grid1.column2.currentcontrol = "combo1"
thisform.grid1.column2.rowsourcetyp ....
thisform.grid1.rowrource ....
error:column2 currentcontrol expression return invalid value ???
Is there some reason that you doing this in code? Wouldn't it be much simpler just to set the column's CurrentControl property in the property sheet in the desgner?
The only reason that I can think of for such an error is that you have a typo and have misspelled the name of the combo in column2. Or else therre really is no combo in column2...
You may want to check out the white paper and sample code on my web site called "ow to Put a Combo Box in a Grid"
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement