Enable and disable updates
- Last Updated: June 19, 2019
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
Even if a particular .NET UI control
supports adding, deleting, or editing records, your application
cannot perform those updates unless the ProBindingSource is enabled
for that type of update. The AllowXxx and ChildAllowXxx properties
on the ProBindingSource control what types of updates are allowed.
All these properties are set to TRUE by default.
If you want to disable a certain type of record update, you can
set the appropriate property to FALSE.
For example, suppose you have a
hierarchical grid for Customer records and Order records.
The user should be able to delete orders, but not customers. You
can achieve the desired result through the ProBindingSource, rather
than through the grid itself. The following code disables deleting
parent records and enables deleting child records:
|