-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: saileshsaha
Message 6 in Discussion

Yes you can retreive deleted records from the dataset.   The steps you need to take 
are:   1) Suppose we have a table named originalTable from which some rows are 
deleted.   2) Get a table which contains only the deleted records from this 
originalTable. Lets call it deletedTable. You can do something like:      deletedTable 
= originalTable.GetChanges(DataRowState.Deleted);      This statement will give you 
deletedTable which contains all the deleted records.   3) Retreive the original 
version by using:   foreach(DataRow custRow in deletedTable) { string custID = 
custRow["CustomerID", DataRowVersion.Original].ToString(); } Here custID is taken for 
example. You can use your own variables based on the columns of your table.   Hope 
this helps.   Regards, Sailesh


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to