Online
18688 days on xHamster
67654M profile views
87887K subscribers
60521 comments left

Asp onrowupdating not firing

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).

Still, I don't understand why setting a column's visible property to false would cause the On Row Updating event not to fire.

If you are using command buttons, then do not use Auto Generate Edit Button.

Description: An unhandled exception occurred during the execution of the current web request.

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.

Note that the Edit and Cancel Edit buttons and associated events work just fine regardless of whether or not columns are hidden. I think I can work around this by checking in the On Row Updating event to see if any of the columns are hidden, and if so manually call the On Row Updating event handler, but that seems like a serious hack. Additional Info and better work around: The "bug" described above occurs if I set the column's visible property to false in the initial page load.

Please or register to post comments
If spammers comment on your content, only you can see and manage such comments Delete all
Gridview RowUpdating event not firing. I was not able to locate that field because it seems as if I was using AutoGenerateEditButton="True" to add my. asp. 
04-Dec-2018 06:03
Reply
Asp GridView. OnRowEditing="grdInventory_RowEditing" OnRowUpdating="grdInventory_RowUpdating. Gridview RowUpdating not firing, RowEditing fires instead when. 
04-Dec-2018 06:09
Reply
Any help or pointers will be helpful HTML Code asp. why Row Updating event is not firing. RowEditing" OnRowUpdating="gvDimension_RowUpdating. 
04-Dec-2018 06:14
Reply
GridView RowUpdating event not firing. Framework Forums on Bytes. 
04-Dec-2018 06:19
Reply

Asp onrowupdating not firing introduction

Asp onrowupdating not firing