Skip to main content

TcxCustomDataController.AppendRecord Method

Appends a new record to a data controller.

Declaration

function AppendRecord: Integer; virtual;

Returns

Type
Integer

Remarks

You should use this method only in provider and unbound modes. If the data controller represents dataset data (TcxDBDataController), you should use the Append method instead.

The AppendRecord function returns the record index of a record. The record index can be used to access its field values by the Values property.

In provider mode, you need to implement the AppendRecord and InsertRecord methods of your custom data source to allow appending records.

See Also