DataGrid.addOnInserting

Overview | Methods | Fields | This Package | All Packages

DataGrid.addOnInserting

Assigns a delegate to the inserting event.

Syntax

public void addOnInserting( CancelEventHandler handler )

Parameters

handler

The CancelEventHandler delegate to be notified when the event occurs.

Remarks

The inserting event occurs when the user first clicks in the blank row of the grid. An empty record is then added to the underlying recordset and the inserted event occurs.

Note   The user can add a row to the grid only if the recordset allows additions and both the allowAddNew and allowUpdate properties of the DataGrid control are set to true.

Canceling the inserting event prevents the row from being added and prevents the inserted event from occurring.

See Also   removeOnInserting