Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to read current updating value in the dataGrid

Posted on 2011-03-03
2
Medium Priority
?
282 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 13

Accepted Solution

by:
Rahul Agarwal earned 2000 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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

610 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