Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to refresh a Grid?
Message
From
26/05/2006 07:26:51
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 2000 SP4
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01125103
Message ID:
01125201
Views:
26
>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

Dallas,
As an addtion to setfocus() workaround, you can also refresh it, first selecting another alias (or select 0).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform