Disable call to refresh in DoOnDataListChange when in dsEdit

Issue #251 closed
Rainer Wolff created an issue

If you want to monitor data changes in the underlying datalist via TPropertChangedEvent, you are running into a stack overflow when posting a record.

The Post event of a record changes the dataobject property, the property of your object fires a PropertyChangedEvent, the propertyChangedEvent triggers DoOnDataListChange, DoOnDatalistChange Calls Refresh, Refresh calls Post and.....

Comments (3)

  1. Stefan Glienke repo owner

    I can only reproduce when I have a property setter that fires property changed event regardless the value actually being changed. If I add a check for field <> value and fire the change after setting the field then it does not happen. If you have a case where it still does, then please post a project to reproduce.

  2. Log in to comment