Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple Grids on a Page - Syncronizing Record Pointers
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00103471
Message ID:
00103816
Vues:
15
>>I may have spoken too soon. Can you explain the line:
>>
>>Grid.oSyncGrid = myOtherGrid
>
>Yeah, that was the line I didn't think was clear. :-) What I was suggesting was creating a grid class, and adding a custom property to that class that held an object pointer to the other one. So, in Grid1, you would set oSyncGrid to 'ThisForm.Grid2', and in Grid2, you would set oSyncGrid to 'ThisForm.Grid1'. Also, you should set the property to a blank in the Destroy of the grid, or you won't be able to release the form, because of the outstanding object reference....

If your form doesn't destroy, you may need to kill the object reference in the form's .Destroy() event. I've found that they don't work well in the .Destroy() event of any object contained by a form.

Also, I too had much problem with having two grids on a page and trying to have them linked. The parent was the remainder of the form. I had to put a view into the first one and the second one was linked to the view via .ChildOrder,
.LinkMaster and .RelationalExpr properties.

Steve
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform