ComponentOne True DBGrid Pro 8
UnboundDeleteRow Event

 

Object Reference> True DBGrid Events> UnboundDeleteRow Event

UnboundDeleteRow Event

The UnboundDeleteRow event is fired when the user deletes an existing row within an unbound grid (one with its DataMode property set to 1 - Unbound or 2 - Unbound Extended).

Syntax

TDBGrid_UnboundDeleteRow (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 the UnboundReadData, UnboundReadDataEx, or UnboundAddData 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