1.21 gigawatts
1.21 gigawatts

Reputation: 17770

Sort by two columns on mx DataGrid

I have a DataGrid that I'd like to have two sorts applied to it. Currently there are three columns.

Name | Type | Date

When the user clicks on the header type column it is sorted correctly by Name as well. Type > Name.

If they click the name header I would like it to sort normally (not two columns).

Upvotes: 0

Views: 100

Answers (1)

JeffryHouser
JeffryHouser

Reputation: 39408

Use a sortCompareFunction on the DataGridColumn.

Upvotes: 1

Related Questions