Question on Updating DB with a DataGrid..

melegant

Well-known member
Joined
Feb 2, 2003
Messages
52
Location
NY
I have an application that fills a datagrid using a datatable as the datasource.

Now, I would like for the user to be able to make changes to that datagrid, then when he/she is ready to hit a submit button and send the changes back to the DB.

The question is if this is possible and if it is..how?

Thanks :D
 
Yep. The easy way I think is to set up a DataAdapter (specifically, the InsertCommand/UpdateCommand/DeleteComand propertyies) and call its Update method passing in the datatable. There are numerous examples online for this.
 
Back
Top