RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataLink.DataEvent Method

Responds to various events that occur while working with data.

Pascal
procedure DataEvent(Event: TDataEvent; Info: Longint); virtual;
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  
deDataSetChange  
Current index into the record buffer  
deDataSetScroll  
Current index into the record buffer  
deLayoutChange  
Current index into the record buffer  
deUpdateRecord  
 
deUpdateState  
 
deCheckBrowseMode  
 
deFocusControl  
 

 

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