Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleted row information cannot be accessed through the r
Message
From
03/03/2006 12:27:47
 
 
To
03/03/2006 02:07:37
Rene Lovino
Bigfoot Global Solutions, Inc
Cebu, Philippines
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01098407
Message ID:
01101307
Views:
14
Glad you found the problem, Rene. =)

~~Bonnie



>Hi All,
>
>Thank you for the reply.
>I have already solve it.
>The problem is my code.
>There is some part of my code that cause the error.
>There is no problem with the delete and update method.
>
>Sorry for late reply.
>
>
>>Larry,
>>
>>Yes, sometimes the .EndEdit() is necessary to "commit" changes to a DataRow that's been changed, but note that this is a DataRow method, not a method of the DataSet.
>>
>>In any case, I don't think this would not be the cause of the error that Rene was encountering. Somewhere, he's trying to access a column in a Deleted row in his DataTable.
>>
>>The DataRow's HasVersion() method determines whether a DataRow is still in the Proposed state (DataRowVersion.Proposed ... in which case, an .EndEdit() is needed), or Current or Original ... a column in a Deleted row can only be accessed by accessing the Original version.
>>
>>~~Bonnie
>>
>>
>>>Rene,
>>>
>>>What you might try before calling the update method is to call the DataSet's EndEdit method. I don't know why but it has cleared up problems I have had in our projects. objDataSet.EndEdit()
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Reply
Map
View

Click here to load this message in the networking platform