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
1585
ScrollCellIntoView
posted

I make a service call to get data for my grid, upon return I set the data to my grid then I set the ActiveCell.

I then call:

this.XamGrid.ScrollCellIntoView(this.XamGrid.ActiveCell);

Sometimes it scrolls a little depending on how many rows I have but it never actually gets the last row into view. Can I just force the scroll bar to scroll to the very bottom?

I always want the active row to be the last row

 

Parents
No Data
Reply
  • 40030
    Suggested Answer
    Offline posted

    Hi, 

    The xamGrid should always scroll the entire row into view. 

    It's a bug if it isn't, but i can't seem to reproduce that behavior. If you have a sample that shows the problem that'd be great. 

    As far as control over the scrollbar, we don't expose anything publicly. 

    However, you could derive from xamGrid, and access the VerticalScrollbar property, which is protected, and add your own method, that tells it to scroll to it's max value. 

    -SteveZ

Children