Suppose we’ve to work on Customer table having Category ID as foreign key.Next Select your database and Set “Save Entity connection string in Web.config as” option true giving name Sample Entities.
Could someone please let me know how to get the selected row?
I had inadvertently set Enable View State for this textbox to "False".
Because of this, the Grid View was rebinding itself before the UPDATE occurred.
I am not getting any error, the page returns with the original values. Hope that helps, marloutor I also had a problem with a Grid View that was not updating. Newvalues Dictionary in the Grid View's Row Updating event showed that the old values for the record were being sent to the database UPDATE query.
I was thinking that if your gridview is rebound then the updated data would be displayed.
Setting Enable View State on the Text Box to "True" fixed the problem.