Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing column count on grid in tabbed form
Message
From
26/11/2006 07:49:31
 
 
To
25/11/2006 20:13:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01172440
Message ID:
01172463
Views:
11
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform