Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Glen Villar
  Where is Glen Villar?
 Palayan City
 Glen Villar
 To: Scott Warris
  Where is Scott Warris?
 Ohio - United States
 Scott Warris
Subject: RE: Form Grid Refresh
Thread ID: 345065 Message ID: 345075 # Views: 37 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Thursday, May 17, 2012 9:22:55 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 to refresh the main form's grid from the gpform's destroy event.

*-- gpform.scx Destroy Event
If Wexist('MainForm') && substitute your main form's name
	Activate Window 'MainForm'

It's never too late.



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