RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSource.Edit Method

Puts the associated dataset into edit mode, if possible.

Pascal
procedure Edit;
C++
__fastcall Edit();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!