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.
Unfortunately, activation email could not send to your email. Please try again.

Scroll SFDataGrid programmatically

Thread ID:

Created:

Updated:

Platform:

Replies:

117011 Jul 18,2014 06:43 AM Jul 18,2014 09:03 AM WPF 1
loading
Tags: SfDataGrid
Tony Leung
Asked On July 18, 2014 06:43 AM

Hi,

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 09:03 AM

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.

Regards,

Akila


Attachment: ScrollSample_3c3b3171.zip

CONFIRMATION

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.

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.

;