Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid sorting with header object click event...
Message
From
22/09/1999 09:58:47
 
 
To
21/09/1999 16:26:34
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00267281
Message ID:
00267556
Views:
23
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!
Previous
Reply
Map
View

Click here to load this message in the networking platform