Data.DB.TDataSet.Edit
Delphi
procedure Edit;
C++
void __fastcall Edit();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | Data.DB.pas Data.DB.hpp |
Data.DB | TDataSet |
Description
Enables editing of data in the dataset.
Call Edit to permit editing of the active record in a dataset. Edit determines the current state of the dataset. If the dataset is empty, Edit calls Insert. Otherwise Edit
Calls CheckBrowseMode to post any pending changes to a prior record if necessary.
Checks the CanModify property and raises an exception if the dataset can't be edited.
Calls the BeforeEdit event handler.
Retrieves the record.
Puts the dataset into dsEdit state, enabling the application or user to modify fields in the record.
Broadcasts the state change to associated controls.
Calls the AfterEdit event handler.
See Also