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