Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing column count on grid in tabbed form
Message
De
26/11/2006 07:49:31
 
 
À
25/11/2006 20:13:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01172440
Message ID:
01172463
Vues:
12
Hello Randy,

are you also debugging during load? Then pageframe and grid should not be there. You surely have put the recordsource creation in the load() because you know it comes before controls init() and these come bfore form.init().

I assume after all you have the problem, that the grid is empty when the form has started. So what cursor/table/alias are you creating in init and what is set as the grids recordsource and it's columns controlsources?

What should always work is: Set the recordsource to the alias and the columns controlsources to alias.field at designtime. if the alias is created and selected workarea through load, the grid should make no problems.

Maybe debug at the grid.init() and see what's there in the datasession then.

In later versions of VFP everything is quite easy through the .bindcontrols property of the form, that you can set to .f. at designtime and to .t. in eg form.init(), after you know the datasession has everything in it for the controls. Then controls bind to the data at that moment.

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform