Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding data to Grid Control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00937635
Message ID:
00937860
Views:
34
>Mark,
>
>It was: thisform.SortGrid1.Refresh
> Alias not found.
>
>Then I realized that I had an overiding property RecordSourceAlias , which I then assigned in the Init - thisform.SortGrid1.RecordSourceAlias=''.
>
>However, this did not solve the basic probelem which is that the Grid is still being populated by the currently open table , (as you mentioned in the DE).
>I cannot use Greg's suggestion to create a pseudo search_crsr in the Init and then zap it, because the user has an option to do the search either in the parent table or the children, so there is a variability in the data structure that gets bound to that Grid.
>
>J

Have you considered creating the grid at runtime during the form's initialization but after the source is available? The thought being to not have an 'unbound' grid that might cause the problems you are seeing. I've been in situations where I needed to change a grid's source interactively during runtime and basically added some code in the screen refresh to check for the proper condition, lock the screen, delete the grid object, recreate it with proper recordsource, position it properly on the form, and unlock the screen. Seemed to avoid the type of problem you are encountering and appears seamless to the user.
Steven D. Supinski
The American Contractor
Santa Cruz, CA 95062
Phone: (800) 333-8435 ext 4017
Email: ssupinski@theamericancontractor.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform