Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find the key field for a deleted row
Message
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
How to find the key field for a deleted row
Divers
Thread ID:
00709493
Message ID:
00709493
Vues:
64
I'm using a DataGrid to edit a table in a DataSet in a Web form. When the user clicks on the Delete button for a row, the row is marked Deleted in the DataSet. After various rows are edited, I need to iterate through the edited rows and do some database operations that depend on the values of the primary key fields for these rows. How can I get the key after the row is deleted? (You cannot access the columns of a deleted row directly.)

I suppose I could keep an array of keys of deleted records and add the row key to the array when the row is deleted, but that seems like a lot of work.
Thomas M. Lamm
Bradbury & Associates
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform