S
Sasha
Hi everybody,
I am having the following problem. While running my program I create a
DataRow (State - Detached). Then I add it to the DataTable (State - Added),
and delete it (State - Detached). Later I try to update the db by doing this
DataAdapter.Update(DataTable.Select("", "", DataViewRowState.Added))
DataAdapter.Update(DataTable.Select("", "", DataViewRowState.Modified))
DataAdapter.Update(DataTable.Select("", "", DataViewRowState.Deleted))
When I try to update the deleted records I get the following message:
"This row has been removed from a table and does not have any data.
BeginEdit() will allow creation of new data in this row.
System.Data.RowNotInTableException"
Does anyone know why this happens?
I am having the following problem. While running my program I create a
DataRow (State - Detached). Then I add it to the DataTable (State - Added),
and delete it (State - Detached). Later I try to update the db by doing this
DataAdapter.Update(DataTable.Select("", "", DataViewRowState.Added))
DataAdapter.Update(DataTable.Select("", "", DataViewRowState.Modified))
DataAdapter.Update(DataTable.Select("", "", DataViewRowState.Deleted))
When I try to update the deleted records I get the following message:
"This row has been removed from a table and does not have any data.
BeginEdit() will allow creation of new data in this row.
System.Data.RowNotInTableException"
Does anyone know why this happens?