Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: tushar Kanvinde
  Where is tushar Kanvinde?
 Kolhapur, Maharastra
 India
 tushar Kanvinde
 To: Sithu Kyaw
  Where is Sithu Kyaw?
 Yangon
 Myanmar
 Sithu Kyaw
 Tags
Subject: RE: Grid blank when reload the same form
Thread ID: 365756 Message ID: 365766 # Views: 32 # Ratings: 0
Version: Visual FoxPro 9 Category: Grids
Date: Monday, December 31, 2012 11:30:41 AM         
   


>
> >
> > What is the form's datasession, private or public? Where do you create the cursor for the grid?
> >
> > Regards
> > Samir
>
> I use Default Data Session.
> Grid.Init() has the code adding the columns and THIS.RecordSource = ''
> Form.Init() sets the record source to the grid.
>
> I tried THIS.RecordSource = '' in Form.Init() as Tariq's suggest, but no success.
>
> With Regards,
> profile for Sithu on Stack Exchange, a network of free, community-driven Q&A sites

If you are using the default datasession, maybe you should not be closing the table.

It is better to have a private datasession so that each form can have its own record pointer etc. With default datasession, if you move the record in one form, it will affect other forms.

Regards
Tushar
http://weblogs.foxite.com/tushar/

ENTIRE THREAD

Grid blank when reload the same form Posted by Sithu Kyaw @ 12/31/2012 8:26:49 AM
RE: Grid blank when reload the same form Posted by Tariq Mehmood @ 12/31/2012 8:52:30 AM
RE: Grid blank when reload the same form Posted by Samir H. @ 12/31/2012 9:44:41 AM
RE: Grid blank when reload the same form Posted by Sithu Kyaw @ 12/31/2012 10:02:51 AM
RE: Grid blank when reload the same form Posted by David Mustakim @ 12/31/2012 11:21:47 AM
RE: Grid blank when reload the same form Posted by Sithu Kyaw @ 12/31/2012 11:52:23 AM
RE: Grid blank when reload the same form Posted by David Mustakim @ 12/31/2012 12:00:48 PM
RE: Grid blank when reload the same form Posted by tushar @ 12/31/2012 11:30:41 AM
RE: Grid blank when reload the same form Posted by David Mustakim @ 12/31/2012 11:38:01 AM
RE: Grid blank when reload the same form Posted by Sithu Kyaw @ 12/31/2012 10:02:52 AM