TcxCustomFilterControl.OnApplyFilter Event
Occurs when applying filter conditions to the linked object.
Declaration
property OnApplyFilter: TNotifyEvent read; write;
Remarks
Write a handler for the OnApplyFilter event to perform specific actions after filter conditions defined in a filter control are applied to the linked object. For instance, in an event handler you can analyze conditions of filtering applied and add additional filter criterion at the linked object level. Since a filter control performs filter criteria synchronization with the linked object after the OnApplyFilter event has been handled, it will reflect changes made to linked object’s filter conditions.
If you use a filter control of the TcxDBFilterControl type, you can handle the OnApplyFilter event to modify an SQL statement used to populate a dataset object linked to the filter control via the DataSet property. The FilterText property value can be used to construct the WHERE clause in the SELECT statement.