mandag den 25. marts 2013

GridView + DetailsView + no update

Updating a GridView based on values changed in a DetailsView, but not finding the changes reflected in the GridView?

In the DetailView's ItemUpdated-method, make sure you have the the GridView.DataBind(), and make sure that in your Page_Load the initial databind, if any, is wrapped in an 'if (! Page.isPostBack)' clause. Which I didn't have, for specific reasons yet preventing the GridView update.

Hope this helps some-/anyone.

Ingen kommentarer:

Tilføj en kommentar