[2.0] How Can Update DataGridView before Saving the Data to Database
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.
Re: [2.0] How Can Update DataGridView before Saving the Data to Database
Welcome to the forums. :wave:
Actually, it should be the other way around. You should save the data to your database, then clear and rebind the grid.
When you use a bound control, it will reflect what currently exists in your table.