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. (Last updated on : November 16, 2018).
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?

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.

XAML

 

C#

 

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.

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

Sample Links:

 

WPF

WRT

UWP

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework:
6036 01/20/2016 02/05/2016 UWP SfDataGrid 4.5.1
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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