Put the dataset in edit mode, if needed.
Source position: db.pas line 2150
public procedure TDataSource.Edit; |
Edit will check AutoEdit: if it is True, then it puts the Dataset it is connected to in edit mode, if it was in browse mode. If AutoEdit is False, then nothing happens. Application or component code that deals with GUI development should always attempt to set a dataset in edit mode through this method instead of calling TDataset.Edit directly.
An EDatabaseError exception can occur if the dataset is read-only or fails to set itself in edit mode. (e.g. unidirectional datasets).
|
Should the dataset be put in edit mode automatically. |
|
|
Set the dataset in editing mode. |
|
|
Current operational state of the dataset. |