You really should be using a DataGridView rather than a ListView. You could bind the DataTable to a BindingSource and the BindingSource to both the grid and the TextBoxes. There would be no code and you'd be guaranteed of updating the correct record. You could even do away with the TextBoxes and let the user edit the data in the grid itself.