Clear grid filter editor when refreshing data or going to different table. Fixes issue #1873

This commit is contained in:
Ansgar Becker
2010-04-17 13:55:25 +00:00
parent b18866b252
commit 5b08b82947

View File

@@ -3499,6 +3499,8 @@ begin
end;
if Assigned(Data) then begin
editFilterVT.Clear;
TimerFilterVT.OnTimer(Sender);
// Set up grid column headers
ShowStatusMsg('Setting up columns ...');
@@ -4036,6 +4038,8 @@ begin
ProgressBarStatus.Hide;
if Assigned(Results) and Results.HasResult then begin
editFilterVT.Clear;
TimerFilterVT.OnTimer(Sender);
ActiveGrid.BeginUpdate;
// Reset filter if filter panel was disabled
UpdateFilterPanel(Sender);