|
-
Jan 5th, 2004, 04:33 AM
#1
Thread Starter
New Member
how to undelete row in a dataset?
hi there,
I want to undelete a row that I previously deleted using "Delete" method.
I have the primary key of the deleted row, the problem that "Find" method can't search the deleted rows. So I am unable to get reference to the deleted row to call its "rejectchanges" method.
can anybody help me??
-
Jan 5th, 2004, 08:35 AM
#2
Hyperactive Member
if u have not comited try rollback.
-
Jan 10th, 2004, 10:10 AM
#3
Thread Starter
New Member
I am working with disconnected data.
my question about Dataset object that contains a row that I already deleted.
I wants to undelete a row that I know only its primary key.
plzzzzzzzzzzzzzzzzzzzzzzzzzzzzz help
-
Jan 10th, 2004, 12:52 PM
#4
PowerPoster
Do a for each loop through the records. Check if it is a deleted row. If so, check its key to see if it matches the key you have. If so, set its rowstate (not sure if that is accurate) to what need to set it.
-
Jan 11th, 2004, 10:10 AM
#5
Thread Starter
New Member
thanx,
I didn't try this yet, but I think it's going to work..
I thought there may be built-in solution for this problem in ADO .NET instead of the classic iteration but it seems that ADO .NET is not perfect yet.
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
|