Rowupdating e newvalues

Update() End Sub one of my other fields does not work either.

A friend asked me to help him out on this and frankly it has me completely stumped as well.

PS: location name is not an integer You don't access the table cells by name. So, basically, instead of looking for table cells, look for the appropriate e. New Values Hi mckrecker, thanks for your reply but I dont need to differ between old and new values since I set a datakey which is the unique ID in my db and I update where unique ID = @unique IDselected of column.

New Values -- it will have all the values, as does e. There are two in that event so data source controls can differnitate bewteen the two.

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.

w=800" src="https://taditdash.files.wordpress.com/2014/06/debugger-inside-gridview-rowupdating-event.png? w=800&h=359" alt="Debugger Inside Grid View Row Updating Event" width="800" height="359" class="size-full wp-image-328" srcset="https://taditdash.files.wordpress.com/2014/06/debugger-inside-gridview-rowupdating-event.png? w=230" src="https://taditdash.files.wordpress.com/2014/06/gridview-on-browser.png? w=800" alt="Grid View on Browser" class="size-full wp-image-335" srcset="https://taditdash.files.wordpress.com/2014/06/230w, https://taditdash.files.wordpress.com/2014/06/gridview-on-browser.png? w=416" src="https://taditdash.files.wordpress.com/2014/06/gridview-cell-showing-updated-value.png? w=800" alt="Grid View Cell Showing Updated Value" class="size-full wp-image-331" srcset="https://taditdash.files.wordpress.com/2014/06/416w, https://taditdash.files.wordpress.com/2014/06/gridview-cell-showing-updated-value.png?

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?

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.

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “rowupdating e newvalues”