dating services in 60548 - Gridview rowupdating not getting new values

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.

A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.

If we move our mouse on to the variables, which hold the cell values, we can see the old value instead of new updated value (Refer the debugging Screen Shot at the Top).

Grid View has a method that is unfortunately protected called Extract Row Values.

I know its very annoying and hard to get the data out of the data controls (gridview in this case), but there are other things you can do to make it easier.

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

Row Updating event, doesn’t work as all samples say it should do.

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

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

Is Post Back) otherwise you'll wipe out the new values everytime before the updating event gets called.

Eureka, and phoooey....yeah, that was the problem, but now I have to solve another problem.

I'd like to know if there are any other ways to retrieve the new values? I have been using the web site successfully for just over a year, and I am presently using a Select button in the row to launch a detailsview, and I edit the database that way. Net a year and a half ago, and VB programmer forever before that, but I feel pretty confident in this large and powerful website I have created, but the users don't like the details view have expressed a desire to edit on the fly in the gridview. My user base has a hold of management's ear, and my management wants to dump ASP. This could be the straw that broke the camel's back - a person's job hangs in the balance - MINE!! If you are databinding in page_load then you need to only do it if(!

Comments are closed.