Skip to main content

Example: Using the foYesterday Filter Operator

This example demonstrates the application of the foYesterday filter operator. To add the filter condition, use the AddItem method of the data controller’s Filter object. This requires the comparison operator, comparison value and text representation of the value be supplied. When using the foYesterday filter operator, the comparison value and its text representation are ignored.

cxGrid1DBTableView1.DataController.Filter.AddItem(nil, 
  cxGrid1DBTableView1PurchaseDate, foYesterday, NULL, '');