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.Edit Method

In This Article

Activates edit mode for the focused record.

#Declaration

Delphi
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