Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing a grid after SQL select
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01333466
Message ID:
01333538
Views:
10
>I have a grid on a form that has to be updated. I enter the criteria and create the cursor that is designated its control source.
>
>Every time I do that, the grid blanks out. I have tried to reset the control source for each individual column, but it keeps giving me an error, saying the object "Grid1.Column1" does not exist.
>
>Is there a setting that I'm missing here?

I usually design my grids and then save them as a class. When I instantiate a form, I instantiate the grid in the form's INIT. When I am ready to redo the underlying cursor, I remove the grid, redo the cursor, and instantiate the grid.

Works like a charm.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Previous
Reply
Map
View

Click here to load this message in the networking platform