I am having a datagrid with sorting enabled when the user has
not sorted any column the selectedIndex of the datagrid and the
index of the item in the arraycollection are same.When the user
sorted any column the index of the item in the arraycollection and
selectedIndex of the datagrid changes .How can i maintain a unique
id for each row with respect to the index of the arraycollection.So
that even sorting i can get the correct value.