serious dating french Asp gridview rowupdating event not firing

The only thing I can see that I'm doing differently from the other Grid View is I'm calling the Load() method: Sql Command my Command = new Sql Command(my Query, cn); Sql Data Reader my Reader; my Reader = my Command.

Execute Reader(); Sigh, I found the problem and I feel like a total idiot now.

You have to make sure that you aren't setting your Grid View's data when it is not postback.

asp gridview rowupdating event not firing-88

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. But when ever any postback occurs that changes I did on the databound even gets cleared or the gridview rows changes to its actual form.I mean in the code above I removed the first cell and spcified a column span for the second cell as 2.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.

Yes, I did put the breakpoint at the Row Updating line (and not in the function).Hi i run into some difficulties getting rowupdating to fire when clicking Update link/button on gridview I set datasource at runtime, basically a datatable Edit and Cancel works. Hi i run into some difficulties getting rowupdating to fire when clicking Update link/button on gridview I set datasource at runtime, basically a datatable Edit and Cancel works. onclick="javascript:__do Post Back('Grid View1','Canc el')" Cancel Works. perhaps Web Form_Do Post Back With Options is not constructed properly. For some reason when you click "Edit" to edit the contents of a row, then "Update" the Row Updating event is never called (i.e.the update and cancel selectors do not go away, clicking on update seems to be ignored).But after the postback the deleted cell comes back.