TMedDataset.OnFilterRecord TMedDataset

property OnFilterRecord: TNotifyEvent ;

Description

OnFilterRecord event handler is called for each record when filtering is active. Assign true to the Accept parameter if you wish the record to be visible for application. Otherwise assign false to Accept.

Warning! Cannot be used in with unidirectional datasets.

Filtering is enabled if the Filtered property is true. When an application is processing a filter, the State property for the dataset is dsFilter.

OnFilterRecord should only be used if filter cannot be implemented using the Filter property.