Detect end of scrollview in TTMSFNCDataGrid

How can you detect if you reached the end of the scrollview of the TTMSFNCDataGrid when Options.Mouse.WheelScrollKeepSelection = True?

procedure TForm6.TMSFNCDataGrid1VScroll(Sender: TObject; APosition: Single);
begin
  if APosition = TMSFNCDataGrid1.VerticalScrollBar.Max - TMSFNCDataGrid1.VerticalScrollBar.ViewportSize then
    TTMSFNCUtils.Log('END')
  else
    TTMSFNCUtils.Log('SCROLLING');
end;

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.