Asp gridview rowupdating event not firing

Rated 3.80/5 based on 957 customer reviews

I put a breakpoint on the Row Updating event handler and found that the event is not fired. I put a breakpoint on the Row Updating event handler and found that the event is not fired. In the Row Editing function, the edit textboxes appear and I can get the "old" values Then the page renders, I edit the textboxes and hit Update.Right now, I have not written code for the Update event. 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.I bind the data on each postback which I think might be part of the problem. One thing I did notice is that is that when the update button is clicke... Row Updated event not firing in Grid View This is only the 2nd time I've tried to create a full-fledged ASP. Yes, I did put the breakpoint at the Row Updating line (and not in the function).

Because of this, session state and view state are disabled.

Ok This is the settings: I use a Viewgrid with only itemtemplate colums for example. How can I get this to fire during the rowupdating event? Hi, I create a Gridview dynamically binding a Datatable as a datasource.

The ...dynamic updatepanel containing gridview control Hiya, Atlas is awesome. I've written a quick tutorial on my blog: am having somewhat of a challenge though. Can anyone offer help, or have you seen the problem yourself? Row Updating event not firing on update button click for Grid View Control Hi, I've viewed some of the other posts and although they come close to addressing my problem they still leave something lacking so here goes. Thanks in advance, Amanda Try something like Response. I create event handlers for the Row Editing, Row Updating and Row Cancelling Edit events.

If you do this, your Grid View's source will be refreshed before you're able to grab the new values out of it.

I'm having a very hard time understand what would prevent your event from being fired.

Leave a Reply