Refreshing gridview with ado.net and then changing edit mode

I just use commandName = "Edit" to switch the gridview to edit mode. Then I use a custom command ("CallUpdate") so I can update it in a custom function. This all works fine except that I call refresh and refresh the page. IS STILL IN MODE MODE. How do I get around this?

+1


source to share


1 answer


Try to install

yourGridView.EditIndex = -1;

      



and then reconfirm it?

+4


source







All Articles