Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to retrieve the new primary key?
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
How to retrieve the new primary key?
Miscellaneous
Thread ID:
00809477
Message ID:
00809477
Views:
76
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
--------------------------------
Next
Reply
Map
View

Click here to load this message in the networking platform