Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

stringgrid synchronize in StringGrid

Status
Not open for further replies.

Barbaro

Programmer
Jan 23, 2002
9
CL
Is there a way to sincronize to stringgrids when moving the scollbar of one of them?
 
Quite simple, really.

Add an event handler to one (or both) grids:
Code:
procedure TForm1.StringGrid1TopLeftChanged(Sender: TObject);
begin
  StringGrid2.TopRow := StringGrid1.TopRow;
end;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top