Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox in grid
Message
De
02/08/2005 10:23:26
 
 
À
02/08/2005 09:19:38
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Database:
MySQL
Divers
Thread ID:
01037801
Message ID:
01037844
Vues:
26
Hi Albert

I have had many problems with combo boxes in grids. Here is a tip I find works everytime:

I first add the combo to my form, OUTSIDE the grid, set it up and run the form to make sure it works as it should.

Once I am satisfied, I then copy and paste it into the grid, and test again.
Only then do I delete the combo from my form and also the un necessary textbox in the column that now has the combo.

Lastly I set sparse = .F. and I am done.

Cheers

Bernard

>Hello Everybody !
>
>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 ???
>
>I have done this in a lot of forms without any problems.
>(there was only one form with the same problem! i couldn't put a combobox in a spezific column(4) !
>Same code worked with all other columns in the same grid ???)
>
>In this grid the problem occurs in any column.
>What am i missing ?????
>
>Any help welcomed
>Best regards
>Albert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform