Rowupdating event in c


08-Jul-2017 11:57

If you are using command buttons, then do not use Auto Generate Edit Button.

For a while now I’m trying to figure out why my method, triggered by the Grid View.

The problem is, I’d very much like to do so, if ASP. But I can’t set a Data Source property or anything on the Sql Data Source!!! I probably have to read the cells on the Grid View of the selected row, find the controls, get the values from those and insert those into my Data Set.

Which means I won’t make my 70% code reduction Microsoft has always promised me.

NET Forum so that other people can learn from the experience too. -Frinny You may need to turn off validation even if you are not validating anything.

It seems like the Java Script can get mangled otherwise.

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. Yes, I did put the breakpoint at the Row Updating line (and not in the function).You have to make sure that you aren't setting your Grid View's data when it is not postback.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.