Hello,
you can easilly show text filter and enter pressed key by following code:
procedure TrDBGrid1.gr1KeyPress(Sender: TObject; var Key: Char);
begin
if not CharInSet(Key, [#8, #27]) then
begin
gr1.SetTextFilter(nil, Key, false);
Key:=#0;
end;
end;
It works only if automatic lookup implemented in rDBGrid is switched off by property LookupCondition := lcNever
You have to use TrDBGridsPropSave and set property StoreFilterSetting = true.
Then all filter setting set in runtime is stored and then automaticly restored.
You can test it in my DBDemo application which uses PropSave components.
I hope it helps
Tomas