I m devloping Window Application using C#.NET

I have one DataGridView which have Name and City Columns. The data comes to DataGridView Via entering data in to the text box. means first enter in to textbox and then cilk on button named "Add to List" so data inserted into DataGridView. I also done that if user enter 5 Row and Click on any row that data appear on above text box now problem is that i want to perform update opration on datagrid view before saveing the data How can it possible.