Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code suddenly stopped working
Message
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 3.0
OS:
Windows XP
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347992
Message ID:
01348201
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform