Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sorting by columns in a grid
Message
 
 
To
05/11/2004 10:57:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00958466
Message ID:
00958526
Views:
15
James,

Yeah I didn't have time to pull the exact code out of my header subclass that handles sorting. It's actually more complex because I decided to keep the row in the same relative location if at all possible so it involves some DoScroll() calls as well.

But GOTOs and Refresh()es are required to get it to look right.

>My example was incomplete; I neglected to show the REFRESH that was there.
>
>Unfortunately, that is not sufficient. I ended up with:
>
>   INDEX ON bla-bla-bla
>   GOTO TOP
>   THIS.REFRESH
>
>   GOTO lnRecno
>   THIS.REFRESH
>
>This seems to be work, and reliably, but only with both GOTOs and both REFRESHs.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform