Updating gridview using ado.net and then changing edit mode
Question
I simply use commandName = "Edit" to put the gridview into edit mode. Then i use a special command ("CallUpdate") so i can update in a special function. All of this works great except after i call the update and the page refreshes IT IS STILL IN EDIT MODE. How do i work around this?
Solution
Have you try to set
yourGridView.EditIndex = -1;
and then to rebind it?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow