G
Guest
Hi all,
I am using the following to remove a row from a DataSet:
myDataSet.Tables["Table1"].Rows.RemoveAt(indexSelected);
followed by;
myDataAdapter.Update(myDataSet);
After this call, looking in the database, the row is not deleted. But
debugging it I can see it remove the row.
Also note that the following insert does insert into the database:
myDataSet.Tables["Table1"].Rows.InsertAt(newRow, index);
Strange how InsertAt works but not RemoveAt.
Does anyone knows what the problem is????
Thanks for any help,
Scott
I am using the following to remove a row from a DataSet:
myDataSet.Tables["Table1"].Rows.RemoveAt(indexSelected);
followed by;
myDataAdapter.Update(myDataSet);
After this call, looking in the database, the row is not deleted. But
debugging it I can see it remove the row.
Also note that the following insert does insert into the database:
myDataSet.Tables["Table1"].Rows.InsertAt(newRow, index);
Strange how InsertAt works but not RemoveAt.
Does anyone knows what the problem is????
Thanks for any help,
Scott