How do I update the primary key in an ObjectDataSource control when it is used with the GridView control?
[top] If you need to update the primary key in the Business Logic Layer (BLL), you must specify the DataKeyNames property in the GridView control and the OldValuesParameterFormatString property in the ObjectDataSource control. For example: