Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Anil Sharma
  Where is Anil Sharma?
 ludhiana
 India
 Anil Sharma
 To: Scott Warris
  Where is Scott Warris?
 Lima
 Ohio - United States
 Scott Warris
 Tags
Subject: RE: Form Grid Refresh
Thread ID: 345065 Message ID: 345070 # Views: 41 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Thursday, May 17, 2012 8:00:25 PM         
   


> Hello I'm sure this boarders on a dumb question but I just can't figure out how to refresh the grid on my main form.
>
> Here's what I’ve got, from my main form I have a grid which displays the various fields from my table and on this form I've got a button that launches a new form to gather additional information from the user. When the user exits this form I release the form and it returns to the main form but it doesn’t update grid until I click on the grid it's self..
>
> On my button on the main form here's what I've got in the click command.
>
>
> do form gpform.scx
> thisform.grid1.refresh
> 

>
> On the gpform.scx in the exit button I have the following..
>
>
> thisform.release()
> 

>
> Hopefully I'm making sense here.. Thanks for your help...Scott

Try thisform.refresh instead of thisform.grid1.refresh
and make sure gpform.scx is model form.


Anil


Accounting Software

Web Development

Accounting, Inventory, Hotel Management, Restaurant Kot Billing, MLM, Excise Accounting and much much more!.
My Blog

ENTIRE THREAD

Form Grid Refresh Posted by Scott Warris @ 5/17/2012 6:58:07 PM
RE: Form Grid Refresh Posted by Anil Sharma @ 5/17/2012 8:00:25 PM
RE: Form Grid Refresh Posted by Glen Villar @ 5/17/2012 9:22:55 PM