Updating a Database from a DataView
How do you update a database from a DataView?
I have a dataGrid which is editable, and it's data is based on a dataView. After a user edits a row, and clicks the update button, what is the preferred method for updating the original database using ADO.net?
When my datasource is a dataset, I usually do
da.Update(ds.Tables(0).Select(Nothing, Nothing, DataViewRowState.ModifiedCurrent))
But this doesn't seem to be working for me.
Thanks.
Aaron
|