Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crash during Update when datagridview sorted
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01221559
Message ID:
01222686
Vues:
16
The system message is below:
This SqlTransaction has completed; it is no longer usable.

This is what I would expect since the SQL transaction being processed is creating a duplicate pk record.

I have discovered something significant about the sorting actions:

I position the List page on the 4th record (without sorting). When I click on the column header, the Ascending symbol appears and the record position doesn't move. When I click on the column header again, the Descending symbol appears but the displayed record changes to the 4th record from the BOTTOM of the list. The Properties page also shows details from the new record. However, it appears that the system is still referencing the foreign key for the previous record and tries to update the child records with the foreign key of the previous parent after updating the correct parent record.
If I click on the column header again (returning to Ascending sort), the list again changes to the 4th record from the beginning. I thought the record pointer should stay the same when sorting columns? At any rate, this "confusion" must be causing the update problems.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform