Gridview rowupdating event firing twice

posted by | Leave a comment

This means that when the user does an update, the data from that update is lost.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.When I hit Update, the changes are not saved, and there is no error message. When I hit Update, the changes are not saved, and there is no error message. 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. Yes, I did put the breakpoint at the Row Updating line (and not in the function).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.I'm having a very hard time understand what would prevent your event from being fired.Do you have some sort of Java Script functionality that may be stopping it? A common problem people have with Grid Views is understanding when to data bind the data source to the Grid View.So I am having an issue with doing an update in a Gridview during an On Row Updating event.

Yes, I did put the breakpoint at the Row Updating line (and not in the function).The event is firing okay, but when the event is done it appears that the row never updates.OK So I have a web app with a dropdown field, a show button and a gridview that i can edit.I have set the requisite attributes in the Grid View tag. (Note, in the gridview the 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...

Leave a Reply

chatixdating com