Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I pitty the grid ...
Message
De
26/03/2003 10:16:53
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00769894
Message ID:
00770218
Vues:
18
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform