I would recommend trying this out and starting a new thread in the .
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.
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).
The Edit, Delete and Insert events work as I expect. The markup and code behind are as follows: "The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. The Row Update event will load a copy of the product table from the database after successfully updating a row.
I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. The routine loading of the product table now happens only on the first pass through the code behind.
I have tried to add an event handler to the Row Updated event of my custom control but it is not called.
I have tried to override On Row Updated in my custom control, but the breakpoint never gets hit.
I know this happens after an update command happens on the database, but I want to write my own custom update.
The Row Updating event fires fine , but gv2_Row Updated does not fire? Width="99%" Header Style-Css Class="ph Head" Css Class="phone Table" Grid Lines="Both" Auto Generate Edit Button="true" Auto Generate Delete Button="true" On Row Editing="gv2_Row Editing" On Row Canceling Edit="gv2_Row Conceling Edit" On Row Updated="gv2_Row Updated" On Row Updating="gv2_Row Updating" Edit Row Style-Back Color="Light Yellow" Data Key Names="id External ID" If you're manually binding data to the Grid View (not using a Data Source ID), then the Row Updating event will fire after an update command, but the Row Updated event will never fire. Aaron I should have been more specific as to why I need the Row Updated to fire.
But I think I can´t avoid to do this, because if I don't, the runtime created controls fade away.
Thanks to all you for answer, but the examples posted aren't my case.
-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.
What happens with this is that the source is being created every time the user submits the page.
It seems like the Java Script can get mangled otherwise.