Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I refresh grids in a form?
Message
 
To
15/10/1999 23:08:39
Raymond Lee
Digicentury (Guangzhou)
Guangzhou, China
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00277177
Message ID:
00277178
Views:
24
>I have a problem with the grid control. If I do the SQL statement again, the grid becomes a blank area. Why? How to resovle this problem?
>
>Thanks,
>
>Raymond

Raymond, issuing SQL statement again trashes your grid.recordsource.

Before doing SQL again you have to reset

grid.recordsource = ""
* SQL statement goes here
grid.recordsource = "mySQLcursor"

If you set up the individual column.controlsource you also should remember/reset each column.controlsource.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform