Is their an easy way to get the index of specific item in a datagrid. So say my DG holds ten items of type foo. I need to find the index of foo #8. Remember the foo's may not be in orde 1-8 because of sorting or something.
Do I just need to run iterate through the rows and find, which matches the object I am looking for?
indexVal:int = arrayCollectionName.getItemIndex(datagridName.selectedItem);
Is that what you want?
Thats it thanks. DG is getting refreshed so old objects don't match up to new objects so have to do it manually.