Detailsview not updating gridview

I have to use response.redirect("current page url") after inserting and updating to resfresh the shown data in gridview.that's a bad way I know.q1) how can I refresh only gridview without refreshing whole page ?I have the same question as: Grid View contents don’t update when underlying data changes but the answers supplied do not work for me, i'm after ideas please because so far I've wasted 3 days trying to get a Grid View to refresh on the postback of a Details View.Situation is this:- I have a Grid View that when a row is selected a Details View displays the detailed info. On clicking edit the Details View goes into 'Edit' mode. The Update fires an event and it correctly updates my SQL database table.The Grid View does know the events that should be used to implement them, so the exceptions shown above are thrown when you try to perform one of these operations, but you have implemented the appropriate event handler.The example shown here is for a Grid View, but the same types of event handlers must be implemented in roughly the same way for other data controls including the Form View, Details View, and List View. This is the final Grid View markup, so you can see the event handlers we’re going to implement.I have the same problem, but in my case gv.databind() doesn't work.Maybe is the reason that i'm using modal dialog window...

The ID and Name values are extracted directly from the Bound Field column, while the Description value is extracted via finding the Label control inside the Template Field column.I know its posting back because I have debugged it and seen it in Page_load(...) postback.I have added So as you can see i've tried a postback under Page_Load(), on Updating and Updated of the Details View too.q2) is there a command like "gridview.refresh" which I can use in sqldatasouce.oniteminserted event ?I couldnt find an info releated with this in help fire or internet thank you Hi~ If you wanna refresh only the Grid View, the answer would be wrapping it in an Atlas Update Panel. Data Bind() is some what 'refresh', as it will retrive all the data from Db again.

Search for detailsview not updating gridview:

detailsview not updating gridview-9detailsview not updating gridview-39

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “detailsview not updating gridview”

  1. The debate on Afghanistan has ramped back up since the president committed more troops, but I wanted to hear from the real experts. So I talked to three, all able to speak freely because they've retired from service.