Skip to main content

TcxCustomDataSource.DeleteRecord(TcxDataRecordHandle) Method

Deletes a record from a custom data source.

Declaration

procedure DeleteRecord(ARecordHandle: TcxDataRecordHandle); virtual;

Parameters

Name Type
ARecordHandle TcxDataRecordHandle

Remarks

The DeleteRecord method is called when a record must be deleted from a custom data source. For instance, the method is called by the data controller’s DeleteRecord method. Records are identified by the ARecordHandle parameter. Refer to the TcxCustomDataSource class description for information on record handles.

In a grid control, a user is able to delete a record by pressing the Del key if the view’s OptionsData.Deleting property is set to True. This calls the DeleteRecord method.

You must implement the DeleteRecord method to delete corresponding data from your custom data source. After deleting, you should invoke the DataChanged method to notify the data controller of the changes made.

See Also