Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple View Grid
Message
De
02/04/2003 18:11:30
 
 
À
02/04/2003 14:11:18
Stephen Tibbs
Atlantic Datasystems Inc.
St. John's, Terre-Neuve, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00773145
Message ID:
00773327
Vues:
11
>I have a grid and I want one of the columns to contain a combobox with a list of field values from a second view. The first problem I have is that I can't seem to get a combobox( other than the standard VFP7 one ) into the grid. I keep getting a message saying that I can't add the object to a grid. Is there a way around this or should I use the VFP7 combobox?

Are you using AddObject() or adding the combobox at design time? I prefer the latter, even though there is some issue with actually dropping the combobox in the right place. Drop it on the form, Ctrl-X, switch to properties window and select the column, click the form.titlebar and Ctrl-V.

>Also I assume that if I use my primary table as the control source for the grid column and then set the record source of the previously discussed combobox this will give me the desired results.

The column.controlsource should be primary.value. Set the combobox controlsource to the same, but the rowsource etc. to the second view.

>Finally, I want to be able to freely type in this grid I have read only turned off in the builder but this alone does not seem to resolve the issue, is there another step involved in this process?

Are the columns and contained controls set readonly as well?

Chris.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform