Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preserving grid properties
Message
 
 
À
20/03/2004 18:23:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00888244
Message ID:
00888391
Vues:
18
>Usually, I define a grid based on an alias which I can see at design and run time. However, I have a form where I am designing a grid but that grid will be bound on a cursor that I am defining in the Init() of the form. So, I have something like this:

Hi, Michel.

In VFP 8 you have the Form's property BindControls. Set it to .f. and set all your ControlSource/RecordSource as usual.

Once you finished setting up your cursor on the Init, switch BindControls = .T.

That will make it.

The older method I used was to leave the grid RecordSource="" until my cursors were properly built, and then bind them.

Hope this helps,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform