ComponentOne True DataControl 8.0
UserDeleteRow Event

 

UserDeleteRow Event

Occurs when a row needs to be deleted in DataMode = 2 - UserEvents.

Syntax

TData_UserDeleteRow (Bookmark As Variant)

Remarks

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

In user events mode (DataMode set to 2 - User Events), the UserDeleteRow event is fired whenever a row of data has been deleted and the deletion is being committed to the data source. You do not need to write a handler for this event unless you want to create your own data source. See User Events Mode for details.

The Bookmark argument specifies the row to be deleted. It is the same variant value that was provided by your UserReadData event code when the row was fetched or by your UserAddData event code when the row was added.

Your event handler should update the data source to account for the deleted row.

If your event handler is unable to delete the specified row, you should notify the TData control by setting the Bookmark argument to Null. TData will interpret this as a signal that the row has not been deleted due to an error condition. If you can qualify the error condition, use the RaiseError method to describe the error. Then TData control's clients, bound controls will receive the appropriate error information.

See Also

TData Control

 

 


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

Product Support Forum  |  Documentation Feedback