How to determine the current sorted header column in a data grid?

I want to know which title the user clicked to give the currently sorted view. Is there an API in the flex framework that I can use to achieve this? I hope I can return the column index so that I know how it is currently sorted.

Thanks Mike

+3
source share
1 answer

mx.controls.DataGridhas a property with a name columns. Each column in this collection is a type object mx.controls.dataGridClasses.DataGridColumnwith a Boolean property with a name sortDescending.

DataGrid headerRelease. , , .

+2

Source: https://habr.com/ru/post/1753089/


All Articles