Solved

How to read current updating value in the dataGrid

Posted on 2011-03-03
2
275 Views
Last Modified: 2012-05-11
Hello guys,

I have tried everything and Now I am coming to you for help. I have a datagrid and I am updating it. I want to read the value that datagrid is being updated with and I am reading it on

Grid_rowupdating event with e.newvalues and all I get is the old value.

How can I just read the value being updated?
0
Comment
Question by:TheCommunicator
2 Comments
 
LVL 13

Accepted Solution

by:
agarwalrahul earned 500 total points
ID: 35033670
Just Check that you when you bind your Datagrid on Not ispostback event in

Page_load and after clicking on update button make sure that datagrid

 is not bind again before the Grid_rowupdating fires. This happen only when

you bind the Datagrid before the Grid_rowupdating event fires which setthe

Datagrid values to previous values.
0
 

Author Comment

by:TheCommunicator
ID: 35112554
I am sorry for the late reply. You were absolutely right. That was the issue.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now