delete rows
Hi!
I am trying to delete a record from my table, using the next sentences:
dsRadiografias.Tables["RADIOGRAFIAS"].Rows[bmbRadiografias.Position].Delete();
MessageBox.Show(dsRadiografias.Tables["RADIOGRAFIAS"].Rows[bmbRadiografias.Position].RowState.ToString());
dsRadiografias.Tables["RADIOGRAFIAS"].AcceptChanges();
The status showed with MessageBox is "Deleted".
Then, to accept the changes to the D.B., I execute:
daRadiografias.Update(dsRadiografias, "RADIOGRAFIAS");
But the row is not deleted. I am sure "bmbRadiografias.Position" is right. I have only two rows in this table, but I can't remove no one.
Regards
-------------------------------
World only exists into your mind.
|