I have a RadGrid which is connected to a single SQL Server table that contains only three fields. One field in this table (UserID) is the Primary Key.
I can successfully edit values in the regular two fields but cannot change the value of the Primary Key field. When I click at the "Update" button after changing the value in the PK field, it returns the same old value. Here is my "UpdateCommand". Apparently it does not save it in the table.
UpdateCommand="UPDATE TestEmp SET UserID = @UserID, UserName = @UserName, Department = @Department WHERE (UserID = @UserID)">
Thank you.
Tariq
I can successfully edit values in the regular two fields but cannot change the value of the Primary Key field. When I click at the "Update" button after changing the value in the PK field, it returns the same old value. Here is my "UpdateCommand". Apparently it does not save it in the table.
UpdateCommand="UPDATE TestEmp SET UserID = @UserID, UserName = @UserName, Department = @Department WHERE (UserID = @UserID)">
Thank you.
Tariq