Start Getting new value gridview rowupdating event

Getting new value gridview rowupdating event

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

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.

Last Change: More Information (@jwiscarson) I’m sorry, I was in hurry. In that project, the users could select 2 categories, enter a search string and the result will show in a Grid View. Here is my problem, if the "admin user" click on edit, change the value of the cell and execute the update, the value would not changed in the Hoo boy.

You didn't ask this in your question, but you've written some smelly code here.

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.

I have a Grid View control and use old style manual binding with a Data Source property and invoke the Data Bind() method.

If you don't use one of the Data Source controls, you are required to handle the Row Updating event.

Row Updating event, doesn’t work as all samples say it should do.