Recent

Author Topic: [SOLVED] Navigating in a String Grid.  (Read 1942 times)

Hopestation

  • Full Member
  • ***
  • Posts: 181
[SOLVED] Navigating in a String Grid.
« on: February 10, 2018, 06:20:17 pm »
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?
« Last Edit: February 10, 2018, 06:44:37 pm by Hopestation »

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: Navigating in a String Grid.
« Reply #1 on: February 10, 2018, 06:36:59 pm »
will .toprow help?
stringgrid.toprow:=10;
The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Hopestation

  • Full Member
  • ***
  • Posts: 181
Re: Navigating in a String Grid.
« Reply #2 on: February 10, 2018, 06:44:04 pm »
So it was obvious.

Thanks for your help.

 

TinyPortal © 2005-2018