Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to retrieve the new primary key?
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
How to retrieve the new primary key?
Divers
Thread ID:
00809477
Message ID:
00809477
Vues:
74
When I use this.NewRow() to create a new row, does it actually create the record in SQL yet? Looks to me the row is only created when I call this.Save(), is that true? How do I retrieve the newly added primary key if the key is generated by SQL? My situation is that I have a grid and a "Add" button, clicking the "Add" button with bring up a data edit form. Once the new record is created, I want to be able to reposition the grid to highlight the newly added record.
Stephen Lee

--------------------------------
Too much to code
Too little time
--------------------------------
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform