[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'DB' (#fcl)


Set the dataset in edit mode, if possible


Source position: db.pas line 1827

public function TDataLink.Edit: Boolean;

Function result

True if the dataset is ready for editing.


Edit attempts to put the dataset in edit mode. It returns True if this operation succeeded, False if not. To this end, it calls the Edit method of the DataSource to which the datalink instance is coupled. If the TDatasource.AutoEdit property is False then this operation will not succeed, unless the dataset is already in edit mode. GUI controls should always respect the result of this function, and not allow the user to edit data if this function returned false.

See also



Component representing the link between a local (GUI) component and a dataset



Datasource this datalink is connected to



Put the dataset in edit mode, if needed



Should the dataset be put in edit mode automatically

Documentation generated on: May 14 2021