Hi,
I want to delete rows from my database. So I download them to a
dataset, and then discover the following.
This does not work:
dataset["tablename"].Rows.Clear();
dataadapter.Update(dataset, "tablename");
This does work:
foreach (DataRow dr in dataset["tablename"].Rows)
{
dr.delete();
}
dataadapter.Update(dataset, "tablename");
I don't know enough about what's going on "underneath the hood" - why
doesn't the first one work?
Thanks for any info,
cdj