Gridview update rowupdating
For this situation, many developers use invisible columns (Hidden columns) in the gridview to identify that row.
We can achieve the same functionality using Datakeys.
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.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.Check out what I’m trying to do, maybe you can help?This collection only requires the row index no and it will give us the primary key.Last line of the following code is calling a local method for updating the database and passing all the parameters to this method.