Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Sort on Top Click?
Message
From
05/01/1999 15:32:22
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00172906
Message ID:
00172910
Views:
19
Hi Steve:

Try this: In the Click() methid of the Header object (as in Grid.Column.Header) put a SET ORDER TO the desired index and refresh the grid. Like so:

**** Grid.Column1.Header1.Click()

SET ORDER TO mytag
THIS.Parent.Parent.Refresh()
RETURN


>I'm pretty sure this has been covered before, but I didn't see it in the (recent) archives.
>
>I have a cursor with several indexes on it as the record source of a grid. I would like to allow the user to click on any column header and re-order the grid according to their choice. Where do I start?
>If this is something that's in a class somewhere, then I'd appreciate some directions on how to do the class thing (newbie to VFP6).
>Help?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform