Is it possible to synchronize scrolling of two grids in gsmPixelScrolling mode?
There was a solution in 2022 for TAdvStringGrid…
Is it possible to synchronize scrolling of two grids in gsmPixelScrolling mode?
There was a solution in 2022 for TAdvStringGrid…
you can use this code to synchronize:
procedure TForm13.TMSFNCDataGrid1HScroll(Sender: TObject; APosition: Single);
begin
TMSFNCDataGrid2.Scroll(TMSFNCDataGrid1.GetHScrollValue, TMSFNCDataGrid1.GetVScrollValue);
end;
procedure TForm13.TMSFNCDataGrid1VScroll(Sender: TObject; APosition: Single);
begin
TMSFNCDataGrid2.Scroll(TMSFNCDataGrid1.GetHScrollValue, TMSFNCDataGrid1.GetVScrollValue);
end;