Skip to main content

How to: Reload Data from the Bound Database in Server Mode (XPO)

Assume that a grid control is bound to a database in a Large Data Sources: Server and Instant Feedback Modes. If data is modified in the database, the grid doesn’t reload the data automatically. To force data to reload and make the grid control display the changes, call the Session.DropIdentityMap method of the Session object being used and the XPServerCollectionSource.Reload method:

session1.DropIdentityMap();
xpServerCollectionSource1.Reload();

Important

Clearing the Identity Map by calling the Session.DropIdentityMap method removes binding objects and may cause exceptions in certain scenarios.

To learn more about data caching and reloading while using eXpress Persistent Objects, see Session Management and Caching.