Print Page | Close Window

refresh entity

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=774
Printed Date: 28-Mar-2025 at 1:01pm


Topic: refresh entity
Posted By: erturkcevik
Subject: refresh entity
Date Posted: 18-Apr-2008 at 9:53am
Hi;
 
I think when changed or adding record , view based entity cannot automatic refresh.  
 
How to refresh view based entitiy after changed or adding new record at another edit form and how to releated record (added, changed) position in the view based entity form after saving?
 
view based entity form : Only listing record to gridview
edit form : edit releated record at view based entity form
 
after saving in edit form
can I using following steps?
pm.refetch<viewbasedentity, DatasourceOnly)
viewbasedentityBS.position = added or changed record
 
 
Best Regards
 



Replies:
Posted By: davidklitzke
Date Posted: 18-Apr-2008 at 1:09pm
If I am in the currently active form in an application, other forms will not update when changes are made to this form.  I would argue that this is a good thing because it would be very dustracting if forms in the backgroud started mgically repainting their contectents.  The correct technique is  to have each form examine its environment when it becomes the currently active form.  If it sees that data has changed, it should force a redisplay.
 



Print Page | Close Window