In rowupdating event in

24 Mar

The following Sql Row Updating Event Args properties provide information specific to this event.I've put a bounty on this question because it's a problem I have had regularly since the days of 1.1 and I feel there must be a better solution to this than hacking the table adapter after I instantiate it. However you can use the extended method to wrap the Row Updated event and expose it to other classes (ie My Row Updated) The extension I have a possible alternative.Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.Follow this link for more details --While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.Now I will show you the C# code behind file of the above ASP.

In data driven web sites, users are normally allowed to view data and administrators are allowed to add, edit or delete data.

You can also indicate whether the exception was handled in the event-handling method by setting the On Row Updated Row Canceling Edit On Row Canceling Edit Row Deleted On Row Deleted Row Deleting On Row Deleting Row Editing On Row Editing Row Updating On Row Updating Grid View Class System.

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.

I'm having a very hard time understand what would prevent your event from being fired.

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.