M
mark kurten
I've posted this in the aspnet group, but i think this is the more
appropriate group.
I have the code below which receives an error. The code gets invoked when a
button is clicked.
Dim row As DataRow
Try
row = ds.Tables("TestTable").Select("emp_id=" & txtEmpID.Value )(0)
row.Delete()
myAdapter.Update(ds)
ds.AcceptChanges()
Catch err As Exception
lblError.Text = err.ToString()
End Try
Error is "System.InvalidOperationException: Update requires a valid
DeleteCommand when
passed DataRow collection with deleted rows."
any help is appreciated..
appropriate group.
I have the code below which receives an error. The code gets invoked when a
button is clicked.
Dim row As DataRow
Try
row = ds.Tables("TestTable").Select("emp_id=" & txtEmpID.Value )(0)
row.Delete()
myAdapter.Update(ds)
ds.AcceptChanges()
Catch err As Exception
lblError.Text = err.ToString()
End Try
Error is "System.InvalidOperationException: Update requires a valid
DeleteCommand when
passed DataRow collection with deleted rows."
any help is appreciated..