>Lutz - MS is quite happy to have code in the grid header click event -
https://msdn.microsoft.com/en-us/library/azc9x3f9%28v=vs.80%29.aspx, so I put code in there just to see if it works, and it does, but you have to physically click it.
>
>I tried making a method called 'gridorder' and putting the 'set order to' in there, and calling that, but that didn't work either.
I think others have pointed you to some valuable books on that matter.
A MS example means not much. This one would not work on any form of mine at first glance.
Do you have the right work area active infront of SET ORDER? Have you checked SET("Order") afterwards? Just suspend the form and try it or use SET to get the appropriate form and check there.
Your method
gridorder is a method of what? Your grid class, your header class ...
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]