Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A search grid that does not behave
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00082205
Message ID:
00082213
Views:
28
> Then if I enter a name in the textbox and press ENTER the grid goes blank even if I included the command ThisForm.Refresh().

Whenever you execute the SQL to create table 2, you are destroying, then recreating, the recordsource to which your grid is bound. This causes the grid to lose all data bindings.

Check out the knowledgebase on UT for ways to deal with this issue. There are several options. Probably the most effective method is to bind your grid to a view rather than to a table. In fact, a view is perfect for what you are trying to do.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform