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
60
scroll to selected item in xamgrid
posted

I have one xamgrid binding with some collection(ItemsSource) . I want to scroll the scrollbar upto selected item. I used xamgridname.ScrollIntoView(Selected item cell) but it doesn't work.How to shift scrollbar present in xamgid programatically so that  user need not scroll the scrollbar upto selected item   ? what will be solution?

Parents
No Data
Reply
  • 21382
    posted

    Set the ActiveCell of the grid to the first cell in the row you want to modify

     

    What is probably happening is since you don't have an active cell when the grid gets focus it will set the first cell active and scroll that into view.

     

Children
No Data