title: Error on editing data to save in database
body: <p>I am doing a record keeping system and I used data source instead of coding the whole connection, add. edit, delete, search. I searched every videos and tutorials and I only saw add, save, delete, move next, move previous. etc. but no edit. So I followed them. The data is saved, and can be deleted. But whenever I try to edit the data then click save, it says: <code>Concurrency violation: the UpdateCommand affected 0 expected 1 records</code>. I made sure that my database is the data source of the gridview and all of my textboxes are connected to each respective data/field. Am I missing something?</p>