Skip to main content

DevExpress v24.1 Update — Your Feedback Matters

Our What's New in v24.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.