The default behavior of the Flex datagrid descending sort is that a selected row remains in view, meaning that the view will scroll down to show the selected row. I would like to change this so that when doing a descending sort the view remains at the top instead of scrolling down. I've tried different approaches with
firstVisibleItem, selectedIndex and scrollToIndex, but can't get it to work. Thanks.
For mx:DataGrid, you might try saving and restoring verticalScrollPosition.