Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preserving grid properties
Message
From
21/03/2004 22:57:06
 
 
To
20/03/2004 18:23:19
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00888244
Message ID:
00888391
Views:
16
>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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform