Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to refresh a Grid?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How to refresh a Grid?
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01125103
Message ID:
01125103
Views:
67
How do I refresh a grid after adding or deleting a record. This sound easy but nothing seems to work. I have a form with a page frame and 2 pages. Each page has a grid or two. Beside each grid is a “new” and “del” command button. Click the “new” button (do form xxx) and up pops a small form to collect the data entry, click the “save” and the record is INSERTed into the grids table. This all works fine. Now after adding a new record I need the grid to be repopulated / refreshed / repainted / what ever, to show the new record. Nothing works to do the refresh, other than clicking into the grid where magically the new entry appears.

How can I refresh the grid programmatically.

Thisform.refresh

Thisform.pageframe1.refresh.

Thisform.pageframe1.page1.refresh

Thisform.pageframe1.page1.grdEmil.refresh

Thisform.pageframe1.page1.grdEmail.text1.refresh.

Go top

NO OF THIS WORKS.

Help?

Dallas
Next
Reply
Map
View

Click here to load this message in the networking platform