Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid sorting with header object click event...
Message
De
22/09/1999 09:58:47
 
 
À
21/09/1999 16:26:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00267281
Message ID:
00267556
Vues:
22
That's what I tried first, in fact. The problem is that when you click on the header, the focus of the grid gets changed somehow. So, the recno() when the click event starts is the new recno(), not the old one.

>Hi Todd,
>
>>Hmmm... I added a property to the form and then updated that propert in the grid's AfterRowColChange event. Then, in the click event of the header, I placed, go thisform.currec after the set order to statement.
>
>New Properties, AfterRowColChange? To much, try:
>
>
nRec = recno(grid.recordSource)
>set order to ....
>thisform.refresh()
>go nRec in (grid.RecordSource)
You will have to tweak this with paranthesis I think. Does this work?
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform