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
715
Stopping XamDataGrid from autoscrolling to show the selected cell.
posted

Hi,

Is there a way to stop the XamDataGrid from auto horizontal scrolling to the selected cell on getting focus?
To better explain my question, in the attached solution re-size the window so that the all columns are not visible without horizontal scrolling.
1) Now scroll horizontally so that the column (name) is visible.
2) Click on the cell ("John Smith") and scroll the horizontal scroll bar rightwards so that the cell (John Smith) is not visible.
3) Click on the textbox above the grid so that the grid looses focus.
4) Now click on any blank area in the grid to get focus back on it.
You can perceive that the Grid auto scrolls horizontally so that the selected cell (John Smith) is visible.
Is there a way to stop this behavior? Can the grid be stopped from autoscrolling?

regards,
Sid

CellFocusPOC.zip