Programming > LCL

[SOLVED] Navigating in a String Grid.

(1/1)

Hopestation:
Hi.

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?

josh:
will .toprow help?
stringgrid.toprow:=10;

Hopestation:
So it was obvious.

Thanks for your help.

Navigation

[0] Message Index

Go to full version