Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Regreshing grid Data in a callback function

Status
Not open for further replies.

aditid

Programmer
May 26, 2003
8
IN
Hi,

I am trying to use caching in my application. I am using a caching class library for this.
In the windows form application, I have a dataset which if filled with employees data and set as a datasource of a grid. This dataset is then added in cache.

While adding an item to cache, we can provide the name of the callback method that will be called when item in the grid expires. On expiration cache will invoke this callback method and fetch the data again in the dataset. If the data has changed during that period then it should be reflected in the grid.

Now my problem is...
callback method is invoked, changed data is fetched into dataset but the changes are not reflected into the grid. Also, if change is of type add new row / delete row then this is NOT reflected. but if the change is of editig of column values in the existing rows, then the changed data is shown in the grid.
What could be the problem ?

Thanks in advance.

Aditi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top