I found the solution.. I had missed it earlier in the docs ..

You can use the event.columnindex in the headerRelease event to get 
the column clicked.

Seth




--- In [email protected], "sefkan3" <[EMAIL PROTECTED]> wrote:
>
> 
> I am facing a problem with sortCompareFunc.
> 
> I have a datagrid with dynamic columns that I create from a 
> webservice. 
> 
> I can specify the sortCompareFunc to point to my custom function 
but 
> it gives me the entire datagrid row as an object:
> 
> here is the callback signature that is specified in the docs
> mySortCompareFunction(obj1:Object, obj2:Object):int 
> 
> How do I know which column was selected? I cannot hardcode the 
> column since it is dynamic (I want to make my function generic 
> enough to enable it to sort columns of that particular type).
> 
> 
> Thanks in advance..
> Seth
>


Reply via email to