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

TcxCustomDataController.DeleteRecord(Integer) Method

Deletes a data record referenced by a record index (in unbound or provider mode only).

#Declaration

Delphi
procedure DeleteRecord(ARecordIndex: Integer);

#Parameters

Name Type
ARecordIndex Integer

#Remarks

The record index is a unique value assigned to every data record in a data controller. The visual record order can change due to sorting applied. However, record indexes always refer to the same data regardless of record positions.

See the DeleteFocused and DeleteSelection methods to delete the focused and selected rows respectively. They allow you to delete data records and grouping rows in all loading modes.

See Also