Occurs before dataset is going to fetch block of records from the server.
property BeforeFetch: TBeforeFetchEvent;
The BeforeFetch event occurs every time before dataset is going to fetch a block of records from the server. Set Cancel to True to abort current fetch operation.
Note: In TCustomMSDataSet.Options mode event handler is called from the fetching thread. Therefore, if you have set NonBlocking property to True, you should use thread synchronization mechanisms in the code of BeforeFetch event handler.