I have a WinGrid displaying a series of rows. Some are not displayed and a scrollbar is shown by the grid. If I click on the last visible row and that row is partially visible, the grid will scroll it up in view. Is there a way to disable this feature?
Hello ,
What you meant with “last visible row and that row is partially visible”, is that meant that you see part of the row by height or by length. Vertical scrolling of UltraGrid is row-based and if you partially see the row by height this meant that your grid is in some container. So maybe there is some code in AfterRowActivated event of UltraGird which cause this. Is it possible to post simple sample that demonstrates your issue.
I am waiting for your feedback
I meant by height and yes, the grid is in a container.
The problem I had was that for some reason, the scroll up behaviour resulted in the last row being marked as selected and the one before (the one that user clicked) being the active row. You lead me into refactoring my code that was located in the AfterRowSelected/Activated events and I was able to solve the issue.
Thanks
How did you resolve this issue? i have same issue but i don't have any code in afterrowactivate event.