Refresh Grid with new data

3 replies. Last post: February 24, 2010 6:02 AM by Julia Wijaya
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback
T LusbyMember

I have a grid that is using CachedDataSource().  Above the grid the user can enter information and save to the database.  The save method returns the saved data that I want to display in the grid. 

I tried

WebGrid1.ClearCachedDataSource();

WebGrid1.Datasource = ds;

WebGrid1.Databind();

 

However the grid didn't not refresh.  Again this update is being done outside of the webgrid, so there is no AcceptAllChanges.  So above the grid is a dropdown(column) and textbox (value) and button that will save this save to the database.  The database will return a new dataset with the updated data.  I want to bind that new data to existing grid.

All times are GMT -5. The time now is 11:35 PM.
Previous Next