<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>>I have two stringgrids with exactly the same columns, basically something like Excel autofilter.<br><br>>Does anybody have an idea how to change the scrollposition of a stringgrid depending on the scrollpos of the other?<br>
<br><br> </div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: "Times New Roman"; background-color: transparent; font-style: normal">One way would be using OnSelection event and try something like:</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: "Times New Roman"; background-color: transparent; font-style: normal"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; background-color: transparent; font-style: normal; font-family: "Times New Roman"">sg1.LeftCol := sg2.LeftCol;</div><div style="color: rgb(0, 0, 0); font-size: 16px; background-color: transparent; font-style: normal; font-family: "Times New Roman"">sg1.TopRow:=sg2.TopRow;</div><div style="color: rgb(0, 0, 0); font-size: 16px; background-color: transparent; font-style: normal; font-family: "Times New Roman""><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; background-color: transparent;
 font-style: normal; font-family: "Times New Roman"">sg1 will be synchronized to sg2.</div><div style="color: rgb(0, 0, 0); font-size: 16px; background-color: transparent; font-style: normal; font-family: "Times New Roman""><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; background-color: transparent; font-style: normal; font-family: "Times New Roman"">That would give you row/col size granularity. For pixel granularity, without messing with grids internals, could be done using GetScrollInfo for both scrollbars on source grid and using SetScrollInfo for both scrollbars on target grid. Not tried but should work :)</div><div style="color: rgb(0, 0, 0); font-size: 16px; background-color: transparent; font-style: normal; font-family: "Times New Roman""><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; background-color: transparent; font-style: normal; font-family: "Times New Roman"">Jesus
 Reyes A.</div><div style="font-size: 12pt; font-family: "times new roman", "new york", "times", serif"> </div>  </div></body></html>