Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ImmediateDelete problem
Message
 
À
26/07/2005 12:38:53
Eugenio Casal
Futura Tecnologia Informação Consult Ltd
São Paulo, Brésil
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01035954
Message ID:
01036072
Vues:
9
Eugenio,

>When I set ImmediateDelete to false (I don't rows immediately deleted from the database), the application reports the error:
>
> "Deleted row information cannot be accessed through the row."

If you set this property to false, your DataTables may contain deleted rows. If you try to access information in these rows you will receive this exception.

To avoid this exception, first check if a row's RowState property is set to Deleted before trying to access values in that row.

For example, in C#:
if (this.DataRow.RowState != DataRowState.Deleted)
{
	// Perform processing
}
And in VB .NET:
If Me.DataRow.RowState <> DataRowState.Deleted Then
    ' Perform processing
End If
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform