Hi,
I'm using an AdsQuery to populate a data from and Advantage Database, wich works great. But I'm Having problem filtering the data (I'm trying to make the same thing as the GridFilter example, but with an AdsQuery).
I Just can't refresh the query.
This is my code on the UniDbGridColumnFilter event
procedure TMainForm.UniDBGrid1ColumnFilter(Sender: TUniDBGrid;
const Column: TUniDBGridColumn; const Value: Variant);
begin
if UniMainModule.AdsQuery.Active then
begin
UniMainModule.ADsQuery.Params.ParamByName(Column.FieldName).Value := '%'+Value+'%';
UniMainModule.AdsQuery.Open;
end
end;
I also try Closing, and Opening the Query, Refreshing it. But nothing seems to work.
Regards
Gabriel