Hi
I can cause the RowScrollRegion.VisibleRows collection to be empty in the AfterRowRegionScroll event. The grid needs to have the following properties set to cause this:
DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn; DisplayLayout.ScrollBounds = ScrollBounds.ScrollToFill;
Then fill the grid with enough rows to cause the scrollbars to appear and scroll the grid with ultraGrid1.ActiveRowScrollRegion.Scroll(RowScrollAction.Bottom);
I really want to keep these two properties on my grid. Is there another workaround? I'm using infragistics 9.2 btw.
I can provide a simple class demonstrating the issue if it helps.
Thanks
Martin
Hi Martin,
I tried this out as you described, but I am not getting this behavior. I tried it with both v10.3 and v9.2 and in both cases, it works fine for me.
I'm attaching my test project here so you can run it and see if you get different results. If you do, then you probably just need to update the latest service release, which is what I used in my testing.
How to get the latest service release - Infragistics Community
Replying to my own post already...
So what I was actually trying to do is work out whether the last row is visible after it has been scrolled (to implement something similar to 'follow tail' on a log viewer).
I solved this problem instead by checking the UIElement on the last row was non-null. To get this to work reliably in the AfterRowRegionScroll event I first had to call Update() on the grid, then use GetUIElement(true) on the last row.
Just in case this is useful to someone...!