>You can do it with this code in the header mouseup event:
>
>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>
>select tablealias
>if nbutton = 1 && left button
> set order to indexname
>else && right button
> set order to indexname descending
>endif
Dear MR John
i Use a Code like you shhow me in the message butwhen i click on the header
that the mouseup event where the routine is all the records of the grid desapear
... its corious i dont know why it occurs
never the less i look at the table making a browse fron the command windows and
the table its ordering ascending or descending..
the grid record desapears why can occurs?
Thanks again
happy to learn of all the world