>When we use the grid on the VFP forms. at the runtime if we keep the mouse pointer on the header of the grid we will see a downward arrow but if we click on the column header of the grid how to sort all the records like in excel and access. (Like ascending or descending.)
>
>Is it possible.
>
>Thank you very much.
As Mark and Hilmar said, there are several existing solutions for this problem. One of them is gridsort (?) by Barbara Peisch, another is in Download section here - GridSorting sample by Vlad Grynchyshyn (with arrows). I am sure, Marcia Akins has one in her book.
I also have my own version, in which I borrowed some of Vlad's ideas. However, for simplicity I used colors for asc/desc order. If you would like my version, drop me a note by clicking on the envelope.
If it's not broken, fix it until it is.
My Blog