Gridview rowupdating event not fired

Right now, I have not written code for the Update event.

Then the page posts back, the text boxes go back to being labels and the new values are lost, and the Row Updating code never fires.

continue reading » In my custom grid View control I cannot raise the Row Updated event.

I have tried to add an event handler to the Row Updated event of my custom control but it is not called.

I put a breakpoint on the Row Updating event handler and found that the event is not fired.…

You should create your data source once (on the user's first visit) and store it into Session for later use, and only bind the Grid View to the data source when it is necessary to do so.

It's quite common that people create the data source and bind this source to the Grid View in their Page_Load() method.NET Forum so that other people can learn from the experience too.-Frinny You may need to turn off validation even if you are not validating anything.At this point in time the above Edit Item Template is displayed with two Image Buttons within it.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.

Leave a Reply