I am attempting to create a resortable data grid in FLex 3. I have the grid set up and have accomplished the drag and drop functions as necessary but i need to get the row index of an item based on the data in the rows.
The datagrid is being used as a playlist and the current index (before sort) needs to be updated with the index of it's new position after the drop action. so that the player does not jump around.
Is it possible to calculate the index of a row based on data in the row? (i.e. DataGrid.getRowIndex.title = "the title")
Also, does the DataGrid or ArrayCollection reset its indicies when a DragDrop is performed?