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

Scroll SFDataGrid programmatically

Thread ID:





117011 Jul 18,2014 10:43 AM UTC Jul 18,2014 01:03 PM UTC WPF 1
Tags: SfDataGrid
Tony Leung
Asked On July 18, 2014 10:43 AM UTC


I tried to use SFDataGrid.ScrollInView(RowColumnIndex) to scroll the datagrid programmatically but no lucks.
Could you please advise if there is anyway to do so?

Akila Rajaram [Syncfusion]
Replied On July 18, 2014 01:03 PM UTC

Hi Tony,

You can use the same method SfDataGrid.ScrollInView(RowColumnIndex) to scroll the datagrid programmatically based on that specified row and column index value. We thought that you have specified the row and column index value which is not already visibled in the grid. Please refer the below code snippet,

Code snippet:

private void Button_Click_1(object sender, RoutedEventArgs e)



  for (int i = 0; i < 500; i++)               


       this.datagrid.ScrollInView(new Syncfusion.UI.Xaml.ScrollAxis.RowColumnIndex() { RowIndex = i, ColumnIndex = 3 });



Please let us know if you have any other queries.



Attachment: ScrollSample_3c3b3171.zip


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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