After you click the edit button, you can see the update and cancel buttons. The cancel button can trigger the rowcancelingedit event normally, but the update button cannot trigger the rowupdating event.
Solution:
In <asp: commandfield>, addCausesvalidation = "false".
Gridview rowupdating not firing (rowupdating event not firing on Update button click for gridview control)
After I click Edit, I will get update and cancel button, cancel works. But update doesnt.
It's a bug of gridview.
Solution:
AddCausesvalidation = "false"Into <asp: commandfield>.
<Asp: commandfield showeditbutton = "true" buttontype = "button" headertext = "edit"Causesvalidation = "false">
<Itemstyle horizontalalign = "center" width = "140px" font-size = "12px" bordercolor = "# 3d90ca"
Borderstyle = "solid" borderwidth = "1px"/>
<Headerstyle cssclass = "divreportheader" borderstyle = "solid" Height = "20px" forecolor = "# ffffff"
Borderwidth = "1px" bordercolor = "# 0f517e" font-bold = "true"> </ASP: commandfield>
Ref :( http://objectmix.com/dotnet/352191-gridview-rowupdating-not-firing.html)
Http://www.codenewsgroups.net/group/microsoft.public.dotnet.framework.aspnet.webcontrols/topic15667.aspx)