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
1105
Last row scrolled into view
posted

I tried searching the forums but couldn't come up with a good answer.

I'm looking to do something that seems pretty straightforward...for a grid with X number of rows, I'd like to know when a user scrolls the last (X) row into view.

I tried listening for the AfterRowRegionScroll event, peeling off the last row from the VisibleRows collection, and testing if that row's index value == the row index of the last row in ultragrid1.Rows.

But I'm finding that the above condition is actually met earlier than it should be.  As I scroll down, prior to reaching the end of my grid, the last row is populated in the VisibleRows collection...even though it isn't actually visible yet. (I should mention I have the Grid's ScrollBounds set to ScrollToFill.

Am I close and just need some sort of tweak?  Is it just not possible to do what I'm trying to do?

Thanks!