Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Code suddenly stopped working
Message
 
 
À
17/09/2008 03:33:53
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01347992
Message ID:
01348201
Vues:
22
>Hi,
this.DeletedPersonRow = dts.Tables[0].Rows[pi];
just stores a reference to the row in the DataTable. When the row is deleted its ItemArray is no longer accessible. Try cloning the DataRow:
>this.DeletedPersonRow = dts.Tables[0].NewRow();
>this.DeletedPersonRow.ItemArray = dts.Tables[pi].ItemArray;
>
>
Thank you so much. Yes, now it works.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform