Data.DB.TDataSource.Edit
[–] Properties | |
---|---|
Type: procedure function
| |
Visibility: public | |
Source: Data.DB.pas Data.DB.hpp
| |
Unit: Data.DB | |
Parent: TDataSource |
Delphi
procedure Edit;
C++
void __fastcall Edit();
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.