[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'EditBtn' (#lcl)

# TCustomControlFilterEdit.InvalidateFilter

Sets flags and property to indicate that the filter must be reapplied for the control.

## Declaration

Source position: editbtn.pas line 274

`public procedure TCustomControlFilterEdit.InvalidateFilter;`

## Description

InvalidateFilter is a method used to indicate that updates to the Filter value are pending for the control. It sets the internal flag used to track pending filter updates, and sets the IdelConnected property to True to enable the asynchronous event handler routine for the control.

InvalidateFilter is called from the private ApplyFilter method when the Filter value is not immediately applied. InvalidateFilter is also called when a new value is applied to the Filter or SortData properties, or when the FilterOptions are modified for the control.

## See also

TCustomControlFilterEdit.Filter |  | Contains the textual used to select the visible items in the associated control.
TCustomControlFilterEdit.IdleConnected |  | Indicates if the asynchronous event handler routine is enabled for the Application.
TCustomControlFilterEdit.SortData |  | Indicates whether items are sorted as they are filtered.
TCustomControlFilterEdit.FilterOptions |  | Contains options which control string comparisons using the Filter for the control.