>Hi,
>
>I want to set some coding in the Grid Header Click event in runtime.
>How to do it ?
I don't know if that's possible.
You could pass a parameter to a generic function. If you want to, say, order the grid by the column whose header gets clicked you can do something like this:
=OrderSet( This.Caption )
FUNCTION OrderSet
LPARAMETERS tcCaption
DO CASE
CASE tcCaption == "Caption1"
SET ORDER TO TAG SomeTag1 IN SomeAlias
CASE
...
OTHERWISE
...
ENDCASE
GO RECNO( "SomeAlias" ) IN SomeAlias
ENDFUNC
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up