RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDataSetAdapter.AddDefaultActions Method

Adds the default action components to this adapter.

Pascal
procedure AddDefaultActions(AComponents: TWebComponentList); override;
C++
virtual __fastcall AddDefaultActions(TWebComponentList AComponents);

This method is called when the dataset adapter needs to generate the list of actions it supports by default (when you do not explicitly assign a set of actions to the adapter).  

AComponents is an existing TWebComponentList object that this method fills with the default dataset actions. 

This method adds the following action components to AComponents:  

TDataSetAdapterDeleteRowAction 

TDataSetAdapterFirstRowAction 

TDataSetAdapterPrevRowAction 

TDataSetAdapterNextRowAction 

TDataSetAdapterLastRowAction 

TDataSetAdapterEditRowAction 

TDataSetAdapterBrowseRowAction 

TDataSetAdapterNewRowAction 

TDataSetAdapterCancelRowAction 

TDataSetAdapterApplyRowAction 

TDataSetAdapterRefreshRowAction 

TAdapterPrevPageAction 

TAdapterGotoPageAction 

TAdapterNextPageAction

Note: The last three actions are only added if the value of the PageSize property is positive.
 

 

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