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
1775
Record selection always in middle of the view area
posted

In the attached screen shot I have a grid containing 50 rows out of which 10 rows are in the viewable area. I also have three buttons, "Select First Row", "Select Mid Row" and "Select Last Row”. If I click "Select First Row" and then I click "Select Mid Row" button, the middle row is getting selected and appears at the bottom of the viewing area. Similarly if I first click "Select Last Row" and then I click "Select Mid Row" button, the mid row appears in the top of the viewing area.

Kindly let me know how I can make the middle row appear in the middle of the view area irrespective of the first or last selection.

Regards,

Sasikumar

Infragistics.zip
  • 138253
    Offline posted

    Hello Sasikumar,

     

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

  • 138253
    Offline posted

    Hello Sasikumar,

     

    Thank you for your post. I have been looking into it and I can say that this behavior is expected since the XamDataGrid stops to scroll once the Record you need gets into view. I created a sample project for you showing how you can workaround this. Basically bring another Record in view first and then select the one you need. I also check if the previously selected Record was the first or the last. Please let me know if this helps you or you need further assistance on this matter.

     

    Looking forward for your reply.

    XamDataGridScrolling.zip