TdxCustomMemData.ProgrammedFilter Property
Specifies the active data filtering mode.
Declaration
property ProgrammedFilter: Boolean read; write;
Property Value
Type | Description |
---|---|
Boolean |
|
Remarks
You can set the ProgrammedFilter
property to True
to populate the list of filtered records accessible through the FilterList property.
Code Example
The following code example populates the list of filtered records accessible through the FilterList property:
var
AGroupIDField: TField;
begin
dxMemData1.ProgrammedFilter := True;
AGroupIDField := dxMemData1.FieldByName('GroupID');
while not dxMemData1.Eof do
begin
if AGroupIDField.AsInteger = 1 then
dxMemData1.FilterList.Add(dxMemData1.RecNo);
dxMemData1.Next;
end;
dxMemData1.Filtered := True;
end;
Default Value
The ProgrammedFilter
property’s default value is False
.
See Also