ControlContext :: fill - Fill control
The function can be used in order to explicitly filling a control after data has changed in the instance displayed in the control. Usually, all changes in data are registered and reflected in the control. In some cases (e.g. when blocking data events by calling ObjectSpace::eventHandling(false)) it might, however, better to refill the control explicitly after data has been changed by the context.
fill() optimizes filling controls, i.e. it checks the database modification count and will not do anything when the modification count did not change. In order to update transient fields or references, refresh() is more appropriate, since it will refresh data independent on any modification state.