--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You can get the HEADER_RELEASE event and block it by calling
> preventDefault() if the column doesn't have any data
>
>
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of fumeng5
> Sent: Monday, June 30, 2008 11:11 AM
> To: [email protected]
> Subject: [flexcoders] DataGrid Sorts on Columns with No Data???
>
>
>
> Hi -
>
> I've got a DataGrid with dynamic data in it that is constantly redrawn
> with new data. Sometimes a column may have no data whatsoever, but
> it's still sortable.
>
> The problem is that if I sort a column with data in it and then I sort
> this column with no data in it, it still appears to be sorting. But
> sorting on what?? All I know is that the column with data in it is
> re-sorted after I do this.....what's happening here and how can I stop
> it?
>
> Just a little confused...Any tips on how to stop this are appreciated.
>
> Thank you,
>
> Fumeng.
>
thanks Alex, it works like a charm.