The DataAdapter's Update Method relies on the RowState of each row in the
datatable to tell whether to perform an update, insert, or delete. Since in
the first case you've cleared out all the DataRows, it therefore has nothing
to do.
Peter

Signature
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
> Hi,
>
[quoted text clipped - 20 lines]
>
> cdj
sherifffruitfly - 31 Oct 2006 20:17 GMT
Peter Bromberg [ C# MVP ] wrote:
> The DataAdapter's Update Method relies on the RowState of each row in the
> datatable to tell whether to perform an update, insert, or delete. Since in
> the first case you've cleared out all the DataRows, it therefore has nothing
> to do.
> Peter
Oooh. So is this right, in other words: the word "delete" in
DataRow.Delete *means* delete only from the DB's perspective. If I
followed up with a DataTable.rows.rowcount(), this would be unaffected
by DataRow.delete?
Whereas on the other hand, DataTable.Rows.Clear() means delete the rows
from the application's perspective. In this case,
DataTable.rows.rowcount() would be affected?
Is that kinda the idea?
Thanks for the info!
cdj