Asp gridview rowupdating event


10-Oct-2019 09:42

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.

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.

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.

To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.

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.

I presume its related to correctly targeting the Drop Down List in question? And i have read a lot from MSDN, and i followed exactly like what it says, but i still can't edit the rows.... Currently I am having trouble with my latest coding adventure I have a web application which records jobs and labour assigned to jobs.



You’ve found a dating site you want to use, and you’ve created a profile, complete with your most flattering photos.… continue reading »


Read more

If you discover a new phone number, or would like to report one that is not working below, please email us or tweet us @Card Insider.… continue reading »


Read more