Note that there are some explanatory texts on larger screens.

plurals
  1. POWCF data service no refresh changes from database updates
    text
    copied!<p>I am having a problem while trying to refresh data in a Gridview, the thing is if I have my app running and I update something on the database the new data is not refreshed but if I close the app and rerun again the changes appear.</p> <p>Here is my piece of code in the constructor:</p> <pre><code>IQueryable&lt;GyLoadCarrier&gt; loadCarrierQuery = queryRepository.GetGyLoadCarriers(); LoadCarriersMfsTransportsLoader = new WcsDomainCollectionViewLoader&lt;GyLoadCarrier&gt;(loadCarrierQuery) { RequestTotalItemCount = true }; LoadCarriersMfsTransportsLoader.LoadStarted += OnLoadCarrierMfsTransportsLoaderLoadStarted; LoadCarriersMfsTransportsLoader.LoadCompleted +=OnLoadCarrierMfsTransportsLoaderLoadCompleted; AvailableLoadCarriers = new DomainCollectionView&lt;GyLoadCarrier&gt;(LoadCarriersMfsTransportsLoader, LoadCarriersMfsTransportsLoader.Data); LoadCarriersMfsTransportsLoader.View = AvailableLoadCarriers; INotifyCollectionChanged notifyingSortLoadCarrierDestination = AvailableLoadCarriers.SortDescriptions; notifyingSortLoadCarrierDestination.CollectionChanged += (sender, e) =&gt; AvailableLoadCarriers.MoveToFirstPage(); using (AvailableLoadCarriers.DeferRefresh()) { AvailableLoadCarriers.PageSize = 30; AvailableLoadCarriers.MoveToFirstPage(); } </code></pre> <p>LoadCarriersMfsTransportsLoader.Load("LoadCarrierAddressChanged");</p> <p>And the the refresh command is just: </p> <pre><code> protected override void OnRefresh() { MfsTransportsLoader.Load(Resources.Strings.LoadingMfsTransportsProgressMessage); } </code></pre> <p>So any idea why is this happening??</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload