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
115
Selection causes grid to jump and wrong row to be selected.
posted

I have a form with a lot of controls on it (enough that there is a scroll bar on the Panel).  There is an UltraGrid that only fits half way on to the viewable area of the screen.  When I click a row on the grid the the panel automatically scrolls so that the entire UltraGroupBox that contains the UltraGrid becomes visible on the screen.  This is normal since it seem to happen when ever any control gains focus.

The problem is when the page jumps before the click is processed all the way.  So if only the top row is visible and I click on it then after than jump the last row in the grid has been selected.

Is there a way to prevent this from happening?

Parents
No Data
Reply
  • 37774
    posted

    What version are you using, and do you have the latest hotfix?  I'm pretty sure that there has been a fix implemented that will prevent the grid from shifting when it is within a ScrollableControl, though I think that the code in the current hotfixes will not address the issue if there are multiple nested ScrollableControls with AutoScroll enabled.  Aside from this, the only thing that I can think of is to handle the MouseDown on the grid to see what was clicked and either process it then or store what was clicked for later processing, since it is the Focus call (as you mentioned) that is triggering this within the panel.

    -Matt

Children