RAD Studio VCL Reference
|
Sets up the associated dataset for use by this adapter.
procedure PrepareDataSet; virtual;
virtual __fastcall PrepareDataSet();
TCustomDataSetAdapter calls PrepareDataSet before it reads the DataSet property the first time after the dataset enters a new mode. This method performs any necessary tasks for initializing the dataset for use by the adapter in the current mode.
PrepareDataSet generates an OnPrepareDataSet event to allow you to perform your own initializations. It then cancels any pending edits and informs any fields that are used in the current mode so that they can perform their own initializations.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|