Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid highlight row problem
Message
De
10/09/2003 16:35:42
Mike Sue-Ping
Cambridge, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00827806
Message ID:
00827992
Vues:
15
Hi Geoff,

My grids are on forms that run in their own private data sessions. What I do is switch to each forms' datasession, select the appropriate base table, reposition to the new record then do a thisform.refresh().

This is almost working since, as I said in my initial post, the grids scroll/refresh with the new record somewhere in it. The row is just not highlighted until I click on the form and then somehow it magically becomes highlighted.

I don't know if I've explained myself clearly, but, if you need more information I can try to supply it.


Regards,

Mike


>Hi Vlad
>
>Just a thought, is the base table for the grid in the form that loses it's highlighting being deselected?
>
>Regards
>Geoff
>
>>Hi Vlad,
>>
>>I posted the following message at the UT and it was suggested by Nadya that I try to contact you to see if you could help me with this issue.
>>
>>In summary, the problem seems to be that a VFP8 grid somehow looses its row highlighting if the grid is scrolled on a form that does not have focus. Could you kindly check it out and let me know if you have any ideas. Any help is greatly appreciated.
>>
>>TIA
>>
>>
>>
>>>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?
>>>
>>>
>>>Thanks in advance
>>>
>>>Regards,
>>>
>>>Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform