|
-
Oct 15th, 2004, 04:44 PM
#1
Thread Starter
Frenzied Member
Getting information from deleted rows [Resolved]
I have a DataSet and the user can delete a row from a table. I get a DataSet of deletions using DataSet.GetChanges(DataRowState.Deleted). What I'd like to do is get information about these deleted rows before committing to the database. But when I try, I get an exception, the message is "Deleted row information cannot be accessed through the row.".
So my question is, how can I get information (primary key, for example) from a deleted row?
Thanks,
Mike
Last edited by Mike Hildner; Oct 16th, 2004 at 12:29 PM.
-
Oct 16th, 2004, 12:29 PM
#2
Thread Starter
Frenzied Member
This explains it. If you retrieve the DataRowVersion.Original instead of .Current (aparently the default) of the deleted row, you can get the information.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|