Forum > LCL

[SOLVED] Navigating in a String Grid.



I am using a String Grid to display data in a csv file.

There are more rows of data than displayed rows in the grid, so I have a vertical scrollbar.

When I use a dbGrid I can use a dbNavigator component to move to either end of my data rows or step up and down individual rows.

I can't find a way to do the same with a String Grid.

I tried using StringGrid.Row := 1 to got to the first row but If I am scrolled to the bottom of the data nothing happens.

If this worked I could make a simple StringGrid Navigator.

Is there an obvious answer that I am missing?

will .toprow help?

So it was obvious.

Thanks for your help.


[0] Message Index

Go to full version