If you show 25 items and the player selected the 10th, then you know which row they selected.
then I know that he selected the item which index is 9 from the dialog list .. not the Row related to that item in the database table I fetched these items from when showing the dialog.. you see what I mean ?