General information
Category:
Forms & Form designer
>>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
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only