Filtered: Boolean;
The Filtered property determines whether data source is filtered.
When the property is set to True, filtering is enabled, and data that satisfies filtering condition is displayed. When the property is set to False, filtering is disabled. Text of the current filter is set by the Filter property.
Executing the example requires a form with the Button1 button, the UiTable component named UiTable1 and any components that display table data. A repository table, to which UiTable1 is connected, contains the Id field.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
UiTable1.Filter := "(Id>=10)And(Id<=50)";
UiTable1.Filtered := True;
End Sub Button1OnClick;
After executing the example, pressing the button filters table data by the Id field. Only the records, for which the Id field value is in the [10,50] range, are available.
See also: