TTMSFNCDataBinderEditLinkObserver Class
Live-binding observer that links a control to a dataset field for two-way edit binding, tracking modifications and supporting validation.
API unit family: TMSFNCDataBinding
Inherits from: TBindSingleCastObserver
Implements: IEditLinkObserver, IObserverTrack
Syntax
TTMSFNCDataBinderEditLinkObserver = class(TBindSingleCastObserver, IEditLinkObserver, IObserverTrack)
Methods
| Name | Description |
|---|---|
| BeginUpdate | Suspends edit-link notifications; call EndUpdate to resume. |
| Edit | Puts the linked dataset into edit mode. |
| EndUpdate | Resumes edit-link notifications after BeginUpdate. |
| IsModified | Checks whether the control value has been modified since the last dataset sync. |
| IsRequired | Checks whether the linked dataset field requires a non-empty value. |
| IsValidChar | Checks whether the specified character is a valid input character for the linked field. |
| Modified | Marks the control value as modified so the binder knows a post is needed. |
| Reset | Reverts the control's value to the current dataset field value, discarding unsaved changes. |
| Update | Writes the current control value back to the dataset field. |