Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I pitty the grid ...
Message
From
26/03/2003 10:16:53
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00769894
Message ID:
00770218
Views:
17
I have run across something similar when I have to requery/recreate the table/cursor that is the grids RecordSource. What I have found that fixes this is a form level method that does the following:

**Recreate data set
Thisform.MyGrid.RecordSource = ' '
Thisform.MyGrid.RecordSource = 'Myfile'
**Reset Grid Column Properties (if necessary)
Thisform.Refresh()

Usually, I will have to reset the column properties (titles, width, etc.).

Hope this helps

>I have a form class in VFP6 that I instanciate programmatically and set its grid control properties prior to issuing the form object's Show(). The problem that I am having is that when the form is not modal, the data does not display in the grid. When the WindowType is set to modal (which I don't want) it works.
>
>Any ideas would be appreciated.
>
>Doug
"You don't manage people. You manage things - people you lead" Adm. Grace Hopper
Pflugerville, between a Rock and a Weird Place
Previous
Reply
Map
View

Click here to load this message in the networking platform