Skip to main content

TcxCustomDataController.Edit Method

Activates edit mode for the focused record.

Declaration

procedure Edit; virtual;

Remarks

The Edit method activates edit mode in your data controller. It sets the dceEdit flag in the EditState property.

In the bound mode (implemented by the TcxDBDataController class), the data controller represents dataset records (a TDataSet descendant). In this case, the Edit method calls the Edit method of the underlying dataset to activate edit mode for the focused record. The TDataSet.Edit method fires the TDataSet.BeforeEdit and TDataSet.AfterEdit events.

In unbound and provider modes, it is not required to call Edit before modifying field values of the focused record. You can use the Values property to change fields of any record at any time. However, the Edit method can be used to produce the effect of starting editing data by the end-user via an external control (ExpressQuantumGrid or ExpressQuantumTreeList).

See Also