ComponentOne True DBGrid Pro 8
ClassicDelete Event

 

Object Reference> True DBGrid Events> ClassicDelete Event

ClassicDelete Event

The ClassicDelete event is fired when the user deletes an existing row within an unbound grid (one with its DataMode property set to 3).

Syntax

TDBGrid_ClassicDelete (Bookmark As Variant)

Arguments

Bookmark is a variant that uniquely identifies the row to be deleted.

Remarks

This event alerts your application that it must delete the row specified by the Bookmark argument from its unbound dataset.

The Bookmark argument contains a bookmark supplied by your application in either the ClassicRead or ClassicAdd event.

This event will not be fired if the AllowDelete property is set to False. Conversely, if you do not implement this event, then you must ensure that AllowDelete is never set to True.

Note

If the delete operation fails in the underlying data source, then you should set Bookmark to Null to inform the grid of the failure. This will cause the grid's Error event to fire. The row specified by Bookmark will remain selected.

See Also

TDBGrid Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback