Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid display using view as recordsouce
Message
De
04/08/2003 05:45:38
 
 
À
03/08/2003 20:34:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00816350
Message ID:
00816405
Vues:
26
Hi Gaylen,

When you write on Grid.RecordSource, Grid Layout is lost.

>To explain futher, I open the parameterized view in the load event using some dummy variable as parameters . Then I requery the view based on the parameters passed on from the calling program in the init of the form.

Therefore:
- if you REQUERY() the view on form Init(),
a) remove RecorSource assign on Init,
b) load RecordSource on Load() ( if name is random )
or put View name on Grid RecordSource property ( if name is fixed );
- or you pass parameters on Load form event and remove RecorSource assign on Init;
- or you rebuild Grid Layout on Form Init;
- or remove Grid by Form definition and on Form Init you add Grid on runtime,
with thisForm.AddObject() or thisForm.NewObject().

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform