>>
The point here is bind the click event of the header to some method in your grid or form, then put your code in that grid or form method.>
>Got the idea. Didn't know about the BindEvend() function. Did what you said it it worked (put "Procedure grdTestGrid.Init" and "Procedure OnHeaderClick" in the from definition).
>
>>
Now just add a OnHeaderClick method to your grid class.>
>Let me, please, ask you how to get the name of the column (or header) that when clicked fired the OnHeaderClick method?
PROGRAM(PROGRAM(-1) - 1)
would return the calling program.
Mark McCasland
Midlothian, TX USA