Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Refreshing GridView after update
I have an ASP.Net webpage (using VS 2008 to develop it) on the page is some textboes, dropdownlists etc. and a gridview. The gridview datasource is an accessdatasource so im using a access database.
Now when the user selects a row in the gridview the information from that row is populated into the textboxes and dropdownlists so that they can make any changes.
The problem im having is when they hit save changes and it updates the database i can't get the gridview to refresh instantly, i have to either refresh the page manually, or go to a different page on the gridview and then back to it.
I have tried using the DataBind() method of the gridview and also tried Response.Redirect to the same page but neither worked.
Any help is much appreciated, thanks in advanced.
0 · ·