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
415
WinGrid Auto Scrolls when clicking bottom rows
posted

We are having a problem with the grids whereas if the user click the bottom row of the grid, the grid automatically moves the scroll bar to show the full row. This is not acceptable because as users are trying to double click on a row, the scroll bar moves and the row that ends up being clicked is the wrong one. There is also a case where we have a form with multiple grids in an mdi container. When we click on the grid near the bottom of the container, the containers scroll bar jumps moving each of the grids up, causing the wrong row to be clicked, and effectively performing a  sort of "shift click" selecting all rows between the initial and the row the mouse ended on. This is causing our users a large headache, and no one here can figure out what could be causing this. Please help.

Parents
  • 469350
    Suggested Answer
    Offline posted

    The behavior you are describing is the intended behavior.

    If the user clicks on a row that is at the bottom of the grid and the row is not fully visible, it becomes the active row and is scrolled into view. This makes sense, and it would be very unintuitive for it to work any other way.

    I understand the issue you are describing, though. If you double-click, the first and second click occur on two different rows in the grid. I'm not sure what you can do about this. If you can detect when this situation occurs, you might be able to cancel the BeforeRowRegionScroll event to work around it. But it really depends on exactly what is happening.

    If you can create a small sample project demonstrating the issue, I will be happy to take a look and see if I can find a workaround for you.

Reply Children