Row Updating event, doesn’t work as all samples say it should do.
All samples of course assume you’re doing everything in your page, but I have to do everything in my code-behind, because on forehand I don’t know what I’ll be binding to my Grid View.
But for this demo, I’ll show you the simple version, that also doesn’t work 🙂Let’s bind the data to our Grid View and have it autogenerate our columns, as well as an edit button.
When we edit a row in our Grid View and press the “Update” button, at some time it’s received in the Row Updating method.
For a while now I’m trying to figure out why my method, triggered by the Grid View.But as I noted in the comments in that method, some collections that should contain the columns (names, old values and new values) are always empty. And the Row Updated method is never even touched!!! NET Forums that I need to use a Data Source control. As the values are inserted into an Ordered Dictionary - you can use the field names to access the changed data 2. There are multiple ways in which one can get the data from the current row that is being edited in a Grid View. Using "Extract Values From Cell": This is an easy way to get all the values from the current row.Check out what I’m trying to do, maybe you can help?
First, I load up some data: After that, I’m doing some work to make my Grid View look beautifull, adding all columns by hand.