Gridview rowupdating method
You can also indicate whether the exception was handled in the event-handling method by setting the Exception Handled property of the Grid View Updated Event Args object.
For more information about how to handle events, see Handling and Raising Events.
This means that when the user does an update, the data from that update is lost.
But I think I can´t avoid to do this, because if I don't, the runtime created controls fade away.
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. Text step through your code and make sure that you're getting values for all these variables. The syntax change that you said to make did the trick (along with a stupid spelling mistake on my part). Pete Net - Since you were a huge help with this (or anyone else out there that might have an idea) - do you have an idea on how I could implemet a child datagrid within the same datagrid that we've just worked on with the update method.I have a Grid View_Row Updating event with some code in it. I am not following how to create an event handler delegate for the above method and how to call this event from the method. This is an event so the Grid View will fire the event that your function handles. 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.