We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to synchronize the scrolling of one to another in the SfDataGrid?

Platform: UWP |
Control: SfDataGrid |
.NET Framework: 4.5.1
Tags: scrollviewer

By default, it is not possible to scroll one SfDataGrid through another. However, it can be achieved by using the ScrollChanged event of the SfDataGrid. You can wire the ScrollChanged event in the loaded event of the Datagrid1 like the following code example.


void Datagrid1_Loaded(object sender, RoutedEventArgs e)
            this.Datagrid1.GetVisualContainer().ScrollOwner.ScrollChanged += ScrollOwner1_ScrollChanged;



        //ScrollChanged event of the ScrollViewer in Datagrid1.
        void ScrollOwner1_ScrollChanged(object sender, ScrollChangedEventArgs e)
            //Sets the Horizontal offset value when horizontally scrolled.
            if (e.HorizontalChange > 0 || e.HorizontalChange < 0)
            //Sets the Horizontal offset value when horizontally scrolled.
            if (e.VerticalChange > 0 || e.VerticalChange < 0)


As given in the above code example, you can set the Horizontal or Vertical offset based on its corresponding Horizontal or Vertical change while scrolling.  Likewise, you can wire the ScrollChanged event for Datagrid2 and set the Horizontal and Vertical offset.



The above code example is only applicable for the WPF platform. For WinRT, UWP refer to the following link.


Sample Links:





2X faster development

The ultimate UWP UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile