I'm having trouble linking data from a report-style listview to a database. When an entry in the listview is edited, I would like the data to be edited in the database. As of now, I have been saving the states of the listview prior to and after editing then changing the database accordingly relying solely on the sorting feature (mistake). This has caused an obvious problem when data is changed and not updated appropriately.

Thank you in advance for your help.