Wednesday, January 24, 2007

If GridView doesn't update data on Update command

Suppose you have set all parameters and the UPDATE statement properly, databound all controls, but the data is still not updated. In that case, you should check the DataKeyNames property of the GridView component to ensure that the property is not blank. This can occur if you are customizing the GridView datasource without using the wizard.

No comments: