Justin Obney
Justin Obney

Reputation: 1078

Updating gridview using ado.net and then changing edit mode

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?

Upvotes: 1

Views: 1167

Answers (1)

tanathos
tanathos

Reputation: 5606

Have you try to set

yourGridView.EditIndex = -1;

and then to rebind it?

Upvotes: 4

Related Questions