I\'ve got a GridView that I bind to a ObjectDataSource programmatically, like:
ObjectDataSource risks = new ObjectDataSource(\"Risks\", \"RetrieveProjectRisk\");
When you use ObjectDataSource, providing the UpdateMethod isn't enough.
Your update method will need parameters as to which row to update. The gridview does not provide this on its own.
You need to implement the RowUpdating to provide the UpdateParameters needed to updated your ObjectDataSource
Take a look at this ObjectDataSource Example