Page 1 of 1

Scrolling to a certain grid line

Posted: Thu Jun 15, 2017 12:11 pm
by 18680596
We did not find any option to focus (scroll to) a certain grid line. For instance if only 20 lines of the grid are shown but you want to set the focus in line 99 this line should move to the top of the grid or to one of the first visible lines.
There should be a command to set the focus in this line automatically.

Re: Scrolling to a certain grid line

Posted: Mon Jun 19, 2017 8:02 am
by yeray
Hello,

You can do this:

Code: Select all

type
  TRowGroupAccess=class(TRowGroup);

//...

  TRowGroupAccess(TeeGrid1.Grid.Current).Scroll(0,TeeGrid1.Rows.UpToRowHeight(99));