Hi I have a gridview and below the gridview a user can add a new entry into the database. The Gridview is then rebound so the new entry is added to the Gridview. When I run my insert statement I am also returning the scope identity with the Select Scope_Identity() statement and a cmd.executescalar(). I was wondering how I could put the Gridview into edit mode based on the return value of the Scope Identity, which is the primary key of the table?