Sql Command command Type=2 status=0) The Row Updated event returns this output: event args: (command=System. Sql Command command Type=2 records Affected=1 row=System. (Note, in the gridview the Enable View State="False" - if I set it to True I get the standard "Failed to load viewstate. error) One strange thing that I've noticed that makes me think it's a View State problem is that if I change the Command Name of the Update button to "Edit" that postback event does get captured in the Row Command event... Here its mentioned that th line should be like this: txt Symbol = ((Text Box)(gv. I need to do the updating operation on what row is clicked." Select Command="SELECT a.tenantcode, a.name, a.fixedrate, a.percentrate, a.percentage, b.locationd, c.status FROM TENANTNEW AS a INNER JOIN LOCATION AS b ON a. before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value).
This enables you to provide an event-handling method that performs a custom routine, such as checking the results of the update operation, whenever this event occurs.
My problem lies in that the click on the Update Image Button posts back, but neither the Row Command nor Row Updating events get triggered.
I have set the requisite attributes in the Grid View tag.
After it has been clicked the postback places that row in edit mode. At this point in time the above Edit Item Template is displayed with two Image Buttons within it.
One has it's Command Name = "Update" and the other "Cancel".