I'm working on a project for college where I use a database and a ListView. The problem is when I need to retrieve the data from one of the ListView items because I can not synchronize the ListView IDs with the DB IDs. In case, if I register some items in the DB and then remove them, the ListView IDs no longer correspond to the DB's, causing it to error when removing or viewing.
Is there a way to bind ListView items to a unique ID, which does not change if the order or number of ListView items changes?