Filtered: Boolean;
The Filtered property determines whether data source is filtered.
When setting the property to True, the filtering is activated, and data that meet a filter condition are displayed. When the False value is set, the filtering is deactivated. 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. Repository table, to which the 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 those records, for which the Id field value falls into the [10,50] range, are available.
See also: