Re: Update a single datarow
is there anything special you need to do to save a datarow to the db?
Woof
Re: Update a single datarow
I believe that you need to update the dataset, not the datarow.
VB Code:
oSqlDataAdapter = New SqlDataAdapter(oSqlCommand)
Dim ComBuilder As New SqlCommandBuilder(oSqlDataAdapter)
Dim ds as New DataSet
oSqlDataAdapter.Fill(ds,"myTable")
Dim DataRows(0) As DataRow
DataRows(0) = Data
oSqlDataAdapter.Update(ds,"myTable")
I'm new at this, so it's just a guess.
Re: Update a single datarow
Well the update of the data adapetr accepts datarows...
plus I don't have a table with the datrow as it's been destroyed.
I create a new datariow, and pass that back to the UI froma function.
The table that contained this gets toasted.
if I try to add the datarow back to another data table then I get an error saying that is already assigned to a datatable.
Woof