Back to Devexpress

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

windowsforms-3323-controls-and-libraries-data-grid-examples-data-binding-how-to-reload-data-from-the-bound-database-in-server-mode-xpo.md

latest1.1 KB
Original Source

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

  • Mar 18, 2025

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 does not 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:

csharp
session1.DropIdentityMap();
xpServerCollectionSource1.Reload();
vb
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.