Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where did Grid.Column0 come from?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Where did Grid.Column0 come from?
Divers
Thread ID:
00569629
Message ID:
00569629
Vues:
73
I'm using VFP 6.0 SP5.

I've created a form with several tables related to each other in the Data Environment. Each of the parent tables has a unique id field that I set as the primary index. Each of the child tables contains a field that I set as a regular index and use for the parent table relationship.

I created a pageframe class and placed several grids on the different pages so I can see where the record pointers are in each of the tables. I've also hard coded the ColumnCount and RecordSource in each of the grids and set the ControlSource for each column.

Now the interesting part. VFP insists on inserting a Column0 in EVERY grid when I drop it on the form. When I run the application Column0 contains the unique id field used in the DE relationship. Anyone know why this happens or how to prevent it?

One more interesting fact. Eventhough I marked each grid as ReadOnly in my class, when the pageframe is dropped on the form, the new Column0 is marked as NOT ReadOnly! I had to change every Column0's ReadOnly property on the form.
Mike Coop
MIU - Data Analyst III
Kemper a Unitrin Business
(904) 245-5949
mcoop@eKemper.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform