Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: James Stewart
  Where is James Stewart?
 New Zealand
 James Stewart
 To: marc debisschop
  Where is marc debisschop?
 marc debisschop
Subject: RE: HEEEELP ! how to refresh a grid when ...
Thread ID: 34038 Message ID: 34041 # Views: 1 # Ratings: 0
Version: Visual FoxPro 7 Category: Grids
Date: Sunday, December 07, 2003 8:13:36 PM         

> hoy,
> i nearly finish my first app in VFP but ...
> i made a form (FORM1) with 1 pageframe (and 3 pages) and on page1 i created a grid (GRID1).
> this GRID1 shows related records (lets say : records of TABLE2).
> as well on this first page a defined a command buttom to open an other form (FORM2) to add a new record (in TABLE2).
> now, when i close FORM2 - and i return in FORM1- (only) GRID1 is blank ...
> is the relation between table1 and table2 a possible cause ?
> (because in FORM2 is no relation defined ! - but the same tables - TABLE1 and TABLE1 - opened)
> or is there an other reason ???
> i can't find how i have to refresh GRID1 - to see and to old records and the added new record in GRID1 ...
> please can you help me because my headache becomes unbearable ...
> thank you very much
> regards,
> marc.
It is something like this....

Form1 and Form2 have two different data sessions (if you are lost have a read of the Data Session help file.)

When you open form2 you "lose" focus on form1's data session, thus the grid loses it's data. Do a search in the forum for datasessions, and grids there are plenty of threads on this topic.

Have you been foxed today?
I have :-) !


HEEEELP ! how to refresh a grid when ... Posted by marc debisschop @ 12/7/2003 4:52:32 PM
RE: HEEEELP ! how to refresh a grid when ... Posted by James Stewart @ 12/7/2003 8:13:36 PM
RE: HEEEELP ! how to refresh a grid when ... Posted by Lucy Alice Pilanga @ 12/8/2003 4:54:12 AM
YEEE ! it works - thanks a lot. Posted by marc debisschop @ 12/8/2003 10:16:46 PM