Hi Erica:
in your first statement, you aren't specificing a row. You need to use
DataSet.Tables[TableIndex].Rows[RowIndex].Delete();
or you can use a specific row instead of RowINdex
DataSet.Tables[TableIndex].Rows[dataRow].Delete();
Remember .Remove() != .Delete(); Remove takes it out of the collection so
the adapter will never see it when it does and update b/c it's gone
http://www.knowdotnet.com/articles/efficient_pt4.html
.Delete on the other hand doesn't affect the Rows.Count until you call
Update or AcceptChanges is called (Update calls AcceptChanges)
HTH,
Bill

Signature
W.G. Ryan MVP Windows - Embedded
http://forums.devbuzz.com
http://www.knowdotnet.com/dataaccess.html
http://www.msmvps.com/williamryan/
> Hello,
>
[quoted text clipped - 7 lines]
>
> Thanks