Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid display using view as recordsouce
Message
From
04/08/2003 05:45:38
 
 
To
03/08/2003 20:34:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00816350
Message ID:
00816405
Views:
25
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
Previous
Reply
Map
View

Click here to load this message in the networking platform