I want to know which header the user clicked on to give the currently sorted view.
Is there an API in flex framework that I can use to achieve this? Hopefully I can get back a column index so I know how it is currently sorted.
Thanks,
Mike
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
mx.controls.DataGridhas a property namedcolumns. Each column in this collection is an object of typemx.controls.dataGridClasses.DataGridColumnwith a boolean property namedsortDescending.Otherwise, you can receive and handle the DataGrid event
headerRelease. This event is transmitted when the user releases the mouse button on a column header, causing the column to become sorted.