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


> >
> >
> > 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/


I simply use different alias for each of same table opened in a different form/usage. I use private datasession only for certain forms eg. special search form for stock-inventory that is called&released over and over within a module that is also using the same table by default, but since I started using SPT methods rather than DE then most of the conflict problems are gone by itself anyway

David
..
.

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