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.
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.
Yes, I did put the breakpoint at the Row Updating line (and not in the function).
You have to make sure that you aren't setting your Grid View's data when it is not postback.
On Row Deleting - can call registered event handlers" I couldnt figure out how to continue this thread, but the issues in it are related so i'm including it as a reference.
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.-Frinny Hi all, I seem to be having the same issue but I don't quite follow the trouble with the above post. Can you explain the T/S a little more or maybe point me to another post that may have already covered it? Hi all, I seem to be having the same issue but I don't quite follow the trouble with the above post. Can you explain the T/S a little more or maybe point me to another post that may have already covered it? It's quite common that people create the data source and bind this source to the Grid View in their Page_Load() method.
Greetings; I have read several of the previous help questions on when the grid View Row Updating event doesn't fire. The Row Update event will load a copy of the product table from the database after successfully updating a row.What happens with this is that the source is being created every time the user submits the page.This means that when the user does an update, the data from that update is lost.I have tried to not override in control and instead use delegates like I described in ...to modify update behavior before it happens, to provide additional handling when an update will occur, to retain a reference to an updated row, to cancel the current update and schedule it for a batch process to be processed later, and so on. 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.