Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Grid RecordSource causes class definition to be
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00080583
Message ID:
00080651
Views:
28
>Use a parameterised view.
>
>When you reset the record source, gids drop all the information you see lost. Parameterised views allow you to change the underlying data without changing the recordsource.

I use parameterized views but still run into the dilemma mentioned. The reason is that the grid assumes the same structure of a view's cursor. Mine change. My grid has an array to hold column definitions and a build method to construct the grid but it still loses the original definition which has a custom textbox used for searching. This textbox is "suddenly" missing and other methods trying to reference it cannot find it. The underlying definition of the grid with the custom stuff should not go away regardless of how I change the .RecordSource or .ControlSource properties.

Steve
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform