Insert using DetailsView doesn't update the GridView on same page.
Posted on 2010-09-23
I have a DetailsView for Inserting new records and a GridView for edting and deleting records - they are both using the same datasource (they are all contacts from the same company. However, once a new record (contact) has been added via the DetailsView, the GridView is not rebound. I have tried refreshing the page but the new record still doesn't show in the GridView. If I come out of the page and go back in, they are all there. What else do I have to do in my code to get them to show automatically after insert?? I am using .net 2.0 and I'm not using code behind (can do if necessary I'm sure). Thanks Lorna