Ah, OK.  Simple then - call RejectChanges() on the copy (delDataSet) and you
can work with the rows again:

DataSet delDataSet = dataSet.GetChanges(DataRowState.Deleted);
delDataSet.RejectChanges();
string xml = delDataSet.GetXml();

Jim

> -----Original Message-----
> From: franklin gray [mailto:[EMAIL PROTECTED]]
> Sent: 02 May 2002 17:49
> To: [EMAIL PROTECTED]
> Subject: Re: [DOTNET] dataset.GetChanges on deleted rows
>
>
> Yes, I agree that I have a dataset with two rows in it, but a
> dataset with two rows in it doesn't do me any good if I can't
> get to the data.  I am not using the data adapter to delete
> the rows from the DB, we are doing something different with
> the rows, but I need to know what the rows are.  The .GetXML
> doesn't work, nor can I access the data in the rows that have
> been deleted.
>
> -----Original Message-----
> From: Jim Arnold [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [DOTNET] dataset.GetChanges on deleted rows
>
>
> If you change this:
>
> DataTable delCustTbl = dataSet.Tables["Customers"];
>
> to this:
>
> DataTable delCustTbl = delDataSet.Tables["Customers"];
>
> Shawn's code works.  I get two rows.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to