Rowupdating gridview asp net

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.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?NET Architecture MVP (Microsoft Most Valuable Professional) works as an Architect Consultant and provides consultancy on how to design and develop Web applications.Suprotim is also the founder and primary contributor to Dev Curry, Dot Net Curry and SQLServer Curry.If you don't use one of the Data Source controls, you are required to handle the Row Updating event. I confirmed this using Reflector: protected virtual void On Row Updating(Grid View Update Event Args e) { bool flag1 = base.

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.Is Bound Using Data Source ID; Grid View Update Event Handler handler1 = (Grid View Update Event Handler) base. Get String("Grid View_Unhandled Even t", new object[] { this. For example a Sql Data Source, which is automatically added to your Web Form if you drag-n-drop your way around Visual Studio 2005.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.