Overview | Methods | Fields | This Package | All Packages
Assigns a delegate to the deleting event.
Syntax
public void addOnDeleting( CancelEventHandler handler )
Parameters
handler
The CancelEventHandler delegate to be notified when the event occurs.
Remarks
The deleting event occurs when the user selects the row(s) to be deleted and presses the DELETE key. The records are then deleted from the underlying recordset and the deleted event occurs.
To determine which rows have been selected for deletion, call getSelectedRows.
Note The user can delete a row from the grid only if the recordset allows deletions and the allowDelete property of the DataGrid control is set to true.
Canceling the deleting event restores the deleted rows and prevents the deleted event from occurring.
See Also removeOnDeleting