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
900
xamDataGrid: retain Scroll position of vertical scrollbar
posted

 

Hi Support,

I am storing scroll position of vertical scrollbar on ScrollChanged Event of xamDataGrid using following code:

scrollPos = xamDatagrid1.ScrollInfo.VerticalOffset;

I want to restore this once the Data us updated using DispatchTimer in the ViewModel. I have using Object Binding for xamDatGrid (DataSource="{Binding Source={StaticResource odpObjectDataProvider1}, Path=GridData}").

What would be the appropriate event to restore the scroll position?

Thank you,

Shakti