Solved

Update not refreshing Gridview

Posted on 2016-08-01
3
62 Views
Last Modified: 2016-08-18
I have a gridview user control on a page. On the page the control is on, I wrapped an UpdatePanel around the gridview with UpdateMode="Conditional" ChildrenAsTriggers="true" and my Trigger is a click of a DataList that does a populate of the gridview.

I also  have an Edit Button and when I click it the row goes into EditMode (EditIndex = e.NewIndex) and when I update a field and click Save the RowUpdating event fires, I update my table and I set the EditIndex = -1 but this does not populate with new values, only the old values.

I have tried to do a DataBind after the setting of the EditIndex = -1 but it does not help. I also tried to DataBind on the RowUpdated event but that didnt work either?

Any help would be appreciated and I have put the code below...
0
Comment
Question by:jknj72
[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
3 Comments
 
LVL 52

Accepted Solution

by:
Ryan Chong earned 500 total points
ID: 41738450
what's the Data Source of your GridView? before you DataBind it, you probably need to refresh the Data Source as well.
0
 
LVL 10

Expert Comment

by:Prakash Samariya
ID: 41738783
Can you please provide bit of code to check with it?
0
 

Author Closing Comment

by:jknj72
ID: 41761244
thanks
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

734 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