Rowupdating command gridview

Rated 3.83/5 based on 796 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.Or, seriously thinking, can there be a reason for this behaviour!Can javascript be the reason for such a strange behaviour???I am using a SQLData Source to populate my gridview in ASP. When I hit Edit, the textboxes appear and I am able to edit my values. I am using a SQLData Source to populate my gridview in ASP. When I hit Edit, the textboxes appear and I am able to edit my values. 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.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).

But Row Editing and Row Canceling Edit events are fired without any problem. I have the following code in my user control: using System; using System. but I am a lot more confused now than before when the Edit event was raised when Update button was clicked.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.If you are using command buttons, then do not use Auto Generate Edit Button.Hi All, I am posting again a much discussed topic related to Row Updating and Row Updated events of a gridview. Even then, the "Update" link on the user control doesn't fire "Update event" when the APPLICATION is in View state [: O]... [^o)] But I wasn't sure that this update event was actually fired...

Leave a Reply