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
415
XAMGRid scrollviewer issue
posted

Hi, I am using xamdatagrid in my project and while running grid. if scrollbar is in mid on clicking of any column at top(sorting option), scrollviewer should move to top but it's not chaning it's original position. please suggest how to reset it's position to top on clicking any column using sort button

Parents
  • 1530
    posted

    Hello Hitesh,

     

    Thank for your post.  I have been looking into it and my suggestion is to hook on the Sorted event of the xamDataGrid and call the BrintRecordIntoView() method there of the first record. This way after sorting you will bring the scrollviewier to its intial position. I have attached a sample which demonstrates this.

     

    If you have more questions do not hesitate to ask.

     

    Sincerely,
    Teodor
    Software Developer
    Infragistics
    www.infragistics.com/support

    XDG_BringIntoView.zip
Reply Children