Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
WinGrid on UltraPanel does AutoScroll
posted

Hi,

I am using a WinGrid on an UltraPanel and have an issue with scrolling.

If I place a large grid on a scrollable UltraPanel, then scroll down the panel and then select the grid, the grid is automatically scrolled into the view such that its top is scrolled at the top of the panel view. It is very annoying if the user has additional data on top of the grid that he wants to keep visible.

What I tried:
I tried to set the AutoScrollOffset of the grid control to match its location on the panel. This helps when selecting the grid initially. But when I select another row in the grid, the grid is scrolled again to the top.

I tried to look for the method ScrollControlIntoView, however UltraPanel does not offer this method. System.Windows.Forms.Panel offers that method and it is possible to override it.

Question:
How can I make sure that a large grid on an UltraPanel does not always scroll itself into the view?

If we do not find a solution, we have to get rid of UltraPanel and use the System.Windows.Forms.Panel again.

Regards,
Reto

 

 

Parents
No Data
Reply Children