How To Scroll a TStringGrid dynamically?

Ben313 picture Ben313 · Jun 23, 2010 · Viewed 7.5k times · Source

I am working in the Borland C++Builder IDE, using VCL controls. I am trying to get a TStringGrid component to scroll down to a row and highlight that row, based on user input in a different form. I have the highlight portion done, but I can't figure out how to scroll the grid down to the correct row. Anyone here know?

Answer

Josh Kelley picture Josh Kelley · Jun 23, 2010

Set the TopRow property.