RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSetAdapterDataLink.DataEvent Method

Responds to various events that occur while working with data.

Pascal
procedure DataEvent(Event: TDataEvent; Info: Longint); override;
C++
virtual __fastcall DataEvent(TDataEvent Event, Longint Info);

DataEvent is called automatically when various data events occur. Event indicates the event that just occurred. Info provides additional context information for some events.  

DataEvent dispatches these events by calling the appropriate methods, as indicated in the following table.

Data event 
Info 
Method called 
deFieldChange | deRecordChange  
The field that changed  
RecordChanged  
deDataSetChange  
Current index into the record buffer  
DataSetChanged  
deDataSetScroll  
Current index into the record buffer  
DataSetScrolled  
deLayoutChange  
Current index into the record buffer  
LayoutChanged  
deUpdateRecord  
UpdateRecord  
 
deUpdateState  
EditingChanged or ActiveChanged  
 
deCheckBrowseMode  
CheckBrowseMode  
 
deFocusControl  
FocusControl  
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!