>Hi all !
>
>Ihave a question .
>when i use grids to show the data i see that the grid has a header in any column.
>
>i want to know if there any way to make that if i click in one of the header of the grid the data take order (descending or ascending) by the field showed in that column?
>
>i'km tring to do this but i cant't yet, my knolowged in vfp 5.0 are not enougth to make this.
>if anybody cant show me some tip to make some like this i thanks a lot
>
>best regards
>Augusto marin G.
If data in grid (table/view/cursor) is indexed then you can add to header.click events:
Select table1
Set Order to tag ....
Thisform.Grid1.refresh
Edward Pikman
Independent Consultant