How to scroll the ExpressQuantumGrid programmatically

To scroll  the Grid programmatically, you should set the following Table Controller's properties:

  1) LeftPos
  2) TopRowIndex;

Please note, the first property defines the position of the horizontal scrollbar in pixels.  The second one defines the index of the top row index.  So, the horizontal scrollbar can be scrolled by one pixel whilst the vertical one can be scrolled based on the height of a certain row.  All you need to do is to set these properties values:

[Delphi]

  <aView>.Controller.LeftPost := 25;
  <aView>.Controller.TopRowIndex := <aView>.Controller.TopRowIndex + 1;

原文地址:https://www.cnblogs.com/railgunman/p/1936706.html