Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Paul Brown
 Paul Brown
 To: Pavel Pipiska
  Where is Pavel Pipiska?
 Pavel Pipiska
Subject: RE: Grid - pack
Thread ID: 648 Message ID: 649 # Views: 1 # Ratings: 0
Version: Unknown Category: General VFP Topics
Date: Friday, June 08, 2001 8:31:05 AM         

> On form I have buttons and grid. When click on one button I deleted and packed some record from table, which I use with grid. When all finished, on place where was grid is blanc rectangle.
> But I want there see actual data. How can I do it?
> Thanks,
> Paul

When you pack a grid VFP closes the table. At this point the grid loses it's structure (hence the blank grid). A common way to get around this is to fool the grid that it has no record source.

lcRecordSource = Thisform.YourGrid.RecordSource
Thisform.YourGrid.RecordSource = ""

*** Pack

Thisform.YourGrid.RecordSource = lcRecordSource



Grid - pack Posted by Pavel Pipiska @ 6/8/2001 8:20:53 AM
RE: Grid - pack Posted by Paul Brown @ 6/8/2001 8:31:05 AM
RE: Grid - pack Posted by John Zylstra @ 6/9/2001 1:01:20 AM