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
2815
ScrollBehaviorOnListChange.PreserveScrollOffset clarification needed
posted

What exactly is Scroll Offset and how is this computed?

Assume XamDataGrid.ScrollBehaviorOnListChange =  ScrollBehaviorOnListChange.PreserveScrollOffset

 

If I scrolled to the first record in my grid (topmost record) and the underlying collection is completely refreshed (items cleared and a new set with more records re-added) should the grid not scroll to the top most record to maintain scroll offset? 

Also, should this behavior be consistent regardless of the net effect of the underlying changes:  In otherwords should I observe something differet when I Clear and AddRange as apposed to simply appending to the collection via AddRange?

TIA.

Parents Reply Children
No Data