Rowupdating with

05 Mar

One approach to solving this problem is to clone the command object so you have a different actual reference: This will work, but since the Command Builder is still connected to the Data Adapter, the Row Updating event will still fire and performance will be hit.

the good old problem of getting the data from the row that is being currently edited within a Grid View. Accessing the "Controls": This method gets you access to the control in the Grid View, which might be useful based on what you are doing.

event handler, which means it will get called for every row.

It examines the command object and, if it is the same referenced object, it essentially rebuilds the object, thereby destroying your command text changes.

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.

In my case this was happening because I was binding to a List of custom objects.

rowupdating with-30rowupdating with-71rowupdating with-54

Laura Osnes It's not only distracting to see an audience member on their phone during a performance, but it's also disrespectful.

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.

So I am having an issue with doing an update in a Gridview during an On Row Updating event.

What I am trying to do is set the Update Command in an Sql Data Source then update using that command.