Skip to content

TDataSource.AutoEdit

Should the dataset be put in edit mode automatically.

Declaration

Source position: db.pas line 2158

published property AutoEdit: Boolean default True;

Description

AutoEdit can be set to True to prevent visual controls from putting the dataset in edit mode. Visual controls use the TDatasource.Edit method to attempt to put the dataset in edit mode as soon as the user changes something. If AutoEdit is set to False then the Edit method does nothing. The effect is that the user must explicitly set the dataset in edit mode (by clicking some button or some other action) before the fields can be edited.

See also

Name Description
TDatasource.Edit Put the dataset in edit mode, if needed.
TDataset.Edit Set the dataset in editing mode.