In rowupdating event in
To do this, I created an instance of the Row Updating event for the Grid View.
This event passes the necessary information to the method via the Grid View Update Event Args parameter. Find Control("Label20e"), Label) Sql DSupport Info.
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.
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.
Binding form controls is mostly a simple matter of attaching a Data Source and setting your controls to reference the correct field in the Data Source.
For example, Fill Error could occur when you can't convert data from data from a Fill Error Event Handler handles the Fill Error event.
The event handler receives an argument of type Fill Error Event Args, which contains data related to this event.
adapter has a Fill Error event that occurs during a fill method.
It allows a user to determine whether a fill operation should continue.
To finish up then one has to set the Sql Data Source Update Parameters to the desired values.