Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomDataSource.DeleteRecord(TcxDataRecordHandle) Method

Deletes a record from a custom data source.

#Declaration

Delphi
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