anchor.diff:        PageSize := LCount;
     end;
   
  -begin
  +  function FindProperFilter: boolean;
  +  var
  +    f: ^TColumnFilter;
  +  begin
  +    for f in FFilters.Ptr^ do
  +      if f.Filter <> vgfSortable then
  +        Exit(true);
  +    Result := false;
  +  end;
  +
  +begin
  +  // if filter is active then vgoAutoHideSearchPanel should be not considered.
  +  // Note: vgfSortable is not considered as 'real' filter
  +  LHasFilter := (FSearchEdit.Text <> '') and (FFilters.Count > 0) and FindProperFilter;
  +
     SetPageIndexEditText(IntToStr(Succ(FPageIndex)));
     FPageCountLabel.Caption := Format('/%d',[FPageCount]);
   
  
positive.code:   LCountOnPage2: Integer;
    LGridUnusedHeight, LPotentialHeight: integer;
    LWasVisible: boolean;
  
    function RecalcPageCount: boolean;
    var
  
negative.code:   end;
  
    // show or hide Search Panel (related to option vgoAutoHideSearchPanel)
    if (vgoAutoHideSearchPanel in FOptions) and (FPageCount in [0,1]) and not LHasFilter then
    begin
      if FCanSearch then
      begin
  