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 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?
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?
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? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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.)
...
|
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...
|
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...
|
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...
|
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...
| |
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...
|
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...
|
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...
|
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...
|
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,...
|
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,...
| |
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...
|
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...
|
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,...
|
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...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 ...
| |