473,507 Members | 3,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GridView RowUpdating has old values

The controls (textboxes) in the gridview row being updated have the old, pre
user updated values in the RowUpdating event. Does anyone have an idea why?

Thank you,

Scott
Nov 2 '06 #1
3 9781
On 11/02/06 14:42, slemen wrote:
The controls (textboxes) in the gridview row being updated have the old, pre
user updated values in the RowUpdating event. Does anyone have an idea why?

Thank you,

Scott
The description for the GridView.RowUpdating event says:
The RowUpdating event is raised when a row's Update button is clicked,
but before the GridView control updates the row. This allows you to provide
an event-handling method that performs a custom routine, such as canceling
the update operation, whenever this event occurs
It goes on to show an example of the use of the NewValues collection (provided
as a member of the arg).

Are you saying that you're seeing the pre-edited values in the NewValues
collection?
Nov 2 '06 #2
Mark,

Oddly, the e.OldValues and e.NewValues are both empty.

Thank you.

Scott

"Mark E. Hansen" wrote:
On 11/02/06 14:42, slemen wrote:
The controls (textboxes) in the gridview row being updated have the old, pre
user updated values in the RowUpdating event. Does anyone have an idea why?

Thank you,

Scott

The description for the GridView.RowUpdating event says:
The RowUpdating event is raised when a row's Update button is clicked,
but before the GridView control updates the row. This allows you to provide
an event-handling method that performs a custom routine, such as canceling
the update operation, whenever this event occurs

It goes on to show an example of the use of the NewValues collection (provided
as a member of the arg).

Are you saying that you're seeing the pre-edited values in the NewValues
collection?
Nov 3 '06 #3
I get the same problem. The NewValues and OldValues collections are
empty...this means I can't do anything but display the orginal data again :(
Does anyone else have this problem or a solution? I am using and ArrayList
of my own Objects with public Get/Set methods (c# style).

"slemen" wrote:
Mark,

Oddly, the e.OldValues and e.NewValues are both empty.

Thank you.

Scott

"Mark E. Hansen" wrote:
On 11/02/06 14:42, slemen wrote:
The controls (textboxes) in the gridview row being updated have the old, pre
user updated values in the RowUpdating event. Does anyone have an idea why?
>
Thank you,
>
Scott
The description for the GridView.RowUpdating event says:
The RowUpdating event is raised when a row's Update button is clicked,
but before the GridView control updates the row. This allows you to provide
an event-handling method that performs a custom routine, such as canceling
the update operation, whenever this event occurs
It goes on to show an example of the use of the NewValues collection (provided
as a member of the arg).

Are you saying that you're seeing the pre-edited values in the NewValues
collection?

Nov 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2563
by: slemen | last post by:
My GridView is bound in VB code to a DataTable. The RowUpdating event fires when the row's Update linkbutton is clicked and the row contains the old, pre-edited values (as is expected.) ...
0
974
by: Rick | last post by:
Has anyone heard about an ASP.NET 2.0 bug with retrieving values on the fly from a GridView control when in Edit mode ? I have a GridView built with an Edit button. When the Edit button is...
1
8999
by: s.bussing | last post by:
Hi, I have been struggling with the GridView the whole day, but can not get this solved. The rowupdating event in my Gridview doesn't give me the new values only the old ones. In my GridView I...
9
26843
by: John007 | last post by:
I am using a SQLDataSource to populate my gridview in ASP.Net 2.0. When I hit Edit, the textboxes appear and I am able to edit my values. When I hit Update, the changes are not saved, and there is no...
1
2513
by: yoni | last post by:
Hi, I got a grid control, i bind it to a datatable, but it has some extra fields, with textboxes, checkboxes, dropdowns etc (in a template field) that are not bound. they are not auto-postback...
4
6032
by: tim.cavins | last post by:
I have a GridView populated by an ObjectDataSource. I am having issues passing the parameters to the objectdatasource. I have verified that the method is being called but none of the parameters...
1
9533
by: Steve Kershaw | last post by:
Hi, I'm using the RowUpdating() event of an updatable GridView. I need to see the values of the columns in the updated row. There has got to be a way to do this! Any suggestions? Thanks...
11
6044
by: SAL | last post by:
Hello, I have a Gridview control (.net 2.0) that I'm having trouble getting the Update button to fire any kind of event or preforming the update. The datatable is based on a join so I don't know...
0
4245
by: steve | last post by:
I have been fighting with trying to update a GridView for a while. I don't want to use the "built-in" way to do it because I am using business layer methods for updating and deleteing and I don't...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7314
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7030
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7482
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5041
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1540
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.