Luke
Luke

Reputation: 5971

How do I update changes in a datagridview back to the database?

I use a datatable as source for the datagridview. How do I save changes made in the datagridview back to the database?

Upvotes: 0

Views: 3424

Answers (1)

Slime recipe
Slime recipe

Reputation: 2283

I think you have to call the Update method of the adapter when you want to save the changes.

http://msdn.microsoft.com/en-us/library/system.data.common.dataadapter.update%28v=VS.100%29.aspx

Upvotes: 2

Related Questions