How To? Autoscroll sheet from timer.

Posted by: kirkkelly on 8 September 2017, 1:53 pm EST

  • Posted 8 September 2017, 1:53 pm EST

    I have a fpcontrol on a winform.  On the form is a timer.  I'm hoping there is a way to scroll the list 1 row at a time every time the timer fires.  I found the ScrollToNextRow in the help, but counldn't figure out how to call it from the timer.  This will be based totally on no user input just the timer firing.

     

    Thanks

    Kirk 


  • Replied 8 September 2017, 1:53 pm EST

    Kirk,


    You can use the SetViewPortTopRow method to programatically scroll the Spread.


      FpSpread1.SetViewportTopRow(0,0,FpSpread1.GetViewportTopRow(0,0) + 1)


     

  • Replied 8 September 2017, 1:53 pm EST

    That works, thanks for the line of code!

     Kirk 

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels