Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Synchronizing multiple grids
Message
 
 
To
09/09/2003 09:07:37
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00827447
Message ID:
00827647
Views:
15
Well, I know, that Vlad Grynchyshin created such class long time ago. Unfortunately, he is busy with big NET project at this moment, so he doesn't hung here anymore... Anyway, you may try to contact him directly, you never know...

>Hello,
>
>I have several VFP8 forms each containing a grid that is setup as a "list". That is, the grid has the new persistent highlight row set on and no cell can be edited. Each of these grids contain different fields from the same underlying table's record and each grid also has one field that is common to all grids.
>
>What I am trying to do is have the highlighted records in each grid synchronize such that as I move thru records in one grid, all other grids in the other forms, move and highlight their corresponding record. Thus far, I've created and array reference to the individual forms and from the grid's AfterRowColChange event I loop thru each form's reference and seek the appropriate record (based on the common fields) then issue a form.refresh().
>
>This approach appears to work ok for the first few times, but after interacting with the forms (like switching between them and moving the record pointer in the grid and switching back) the highlight "gets lost" on the other forms. All grids appear to be coordinated because I can see the information in the associated form's grid change. In addition, if I activate the form where the highlight "got lost", the grid will highlight the correct record so I know the synchronization works. Its just that the highlight row sometimes fails to highlight (until I activate the form).
>
>
>Anyone else experience this or have any ideas as to what is happening?
>
>
>TIA
>
>Regards,
>
>Mike
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform