Data.DB.TDataSource.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 | TDataSource |
Description
Puts the associated dataset into edit mode, if possible.
Call Edit to enable a data source component to control a user's ability to edit a dataset associated with the data source. Edit checks that the AutoEdit property of the data source is true and that its State property is dsBrowse before calling the dataset's Edit method. Checking these properties before calling the dataset's Edit method ensures that the dataset is in a state that supports editing, and that the data source allows editing as well.