Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleted row information cannot be accessed through the r
Message
De
03/03/2006 02:07:37
Rene Lovino
Bigfoot Global Solutions, Inc
Cebu, Philippines
 
 
À
27/02/2006 16:00:50
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 2.0
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01098407
Message ID:
01101166
Vues:
15
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()
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform