Is it possible to set the wingrid to scroll smoothly when scrolling vertically? Or is there a way I can override the scrolling function to do this?
What I want to do is scroll my grid vertically the same way the grid scrolls horizontally.
Thanks,
H catkinson,
Just a hint: Try to decrease the vertical height of the grid just for test purposes and repeat the scrolling. Is it smoother now? I just recognized, that all list-controls get into troubles on smooth and fast scrolling lists which are "higher" than 800 - 900 px. If this works for you, you have to think about caching the content of the grid I think.
HTH
Thanks for the suggestion. However the behavior is the same. In fact I suspect the behavior is working as it's supposed to. When scrolling vertically on the grid the top row always snaps to the top. However when scrolling left to right the column does not snap to the left, it's just a smooth scroll. I want to duplicate the left to right smooth scroll behavior when scrolling up and down.
The grid's vertical scrolling is always row-based. There is no way to change this.
Hi Mike. Is this still true?
Yes, this has not changed.
Hi Paul,
The grid's scrolling it row-based. It always keeps a row flush against the top of the grid. So if you have a single cell that is larger than the grid, you will never be able to see part of that cell.
I'd recommend limiting the height of the cell and use the VertScrollBar property on the column to allow the user to scroll the cells contents.
Hi Mike,
If I have a bunch of text in a multi line cell which, vertically, is larger than my screen size, how do I see all of the text? When I scroll the grid to see the text at the bottom of the cell, the grid will switches to the next row before I can see the bottom portion of the text.
--Paul
I doubt there is any way you could reasonably implement this yourself if that's what you mean.
Yes, this would be a pretty major change to the grid even for us to make internally.
Do you think it would be a huge undertaking to override this behavior?