Flex: Database driven DataGrid: arrows disappearing

In Flex I'm using the following code to allow sorting in a DataGrid (the data is paged and sorted serverside).

        private function headerReleaseHandler(event:DataGridEvent):void
            var column:DataGridColumn = DataGridColumn(event.currentTarget.columns[event.columnIndex]);

                if(this.query.SortField == column.dataField)
                    this.query.SortAscending = !this.query.SortAscending;
                    this.query.SortField = column.dataField;
                    this.query.SortAscending = true;


This works perfectly, except that the arrows that indicate sorting isn't shown. How can I accomplish that?

Thanks! /Niels


There is an example here if this is what you are looking for: http://blog.flexexamples.com/2008/02/28/displaying-the-sort-arrow-in-a-flex-datagrid-control-without-having-to-click-a-column/

It looks like you need to refresh the collection used by your dataprovider.

Need Your Help

Quartz UIImage with rounded corners and transparent background on iOS

iphone ios uiimage quartz-graphics rounded-corners

I have used this solution to apply corner radius to UIImage in Quartz. It works fine like I predicted.

Cocoa (swift) view controllers that are still open are keeping my app from being able to quit

cocoa swift viewcontroller sheet

I wanted to do a quick cocoa version of my developing iOS app to help me test, as you probably already know - it was not quick but I’ve learned a lot. I only have one little problem left. Ok, there’s

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.