Refreshing a DataBound grid
Posted on 2011-02-14
I have an Infragistics WebDataGrid which is data bound to an asp:ObjectDataSource. This seems to work OK. Each row in the grid has an edit and delete button.
In this function, I save the updated data back to the database and call
My thought was that this would cause the data source to refresh and update the grid with the changes just made. Stepping through in debug, I can see that the DataBind() does indeed cause the underlying data source to re-read the objects from the database and this does pick up the changes - however the GRID does not seem to show these changes uintil I refresh the page????
I am certain that the DataBind is causing the ObjectDataSource to refresh - why isn't the grid refreshing also? Do I have to call anything else to cause the display to refresh?