Occurs when a virtual dataset queries the number of records.
property OnGetRecordCount: TOnGetRecordCountEvent;
Write the OnGetRecordCount event handler to let the virtual dataset know, how many records it contains. Since virtual dataset does not store a data, when opening it fires the event to determine how many records will be kept in it. Then the virtual dataset will ask for the value of each field, using a OnGetFieldValue event handler.