Object Reference > True DBGrid Properties > AllowDelete Property |
AllowDelete Property
Enables interactive record deletion.
TDBGrid.AllowDelete= boolean
Read/Write at run time and design time.
If True, the user can delete records from the data source underlying the TDBGrid control.
If False (the default), the user cannot delete records from the data source underlying the TDBGrid control.
Use the AllowDelete property to prevent the user from deleting records from the data source through interaction with the TDBGrid control.
The underlying data source may not permit deletions even if the AllowDelete property is True for the TDBGrid control. In this case, a trappable error occurs when the user tries to delete a record.