Application Mode > Application Mode Events > Handling the ClassicDelete event in mode 3 |
If the AllowDelete property of the grid is True, then the user can delete rows from the grid, and you must implement the ClassicDelete event:
Example Title |
Copy Code
|
---|---|
Private Sub TDBGrid1_ClassicDelete(Bookmark As Variant) |
When fired, the Bookmark argument specifies the row being deleted. If the deletion fails, you should set the Bookmark argument to Null before returning from the event. Note that following execution of the ClassicDelete event, the grid is automatically refreshed.