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
385
When there are fixed rows, how can I get ScrollRowIntoView to work?
posted

This doesn't seem to work when I have fixed rows.  The second and third rows are fixed.  I'm trying to get the first row to scroll into view underneath them. 

grid.ActiveRowScrollRegion.ScrollRowIntoView(grid.Rows[0]); 

 If I set grid.ActiveRowScrollRegion.FirstRow to grid.Rows[0] it works, but I would like to not necessarily move it to the top every time if the row is already visible.  (It won't always be Rows[0] that I want scrolled into view.)

 Is there a better way to do this besides calling ScrollRowIntoView, then checking if its visible, then setting it to FirstRow?