)
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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to automatically scroll to bring a selected item into the view?

Platform: Xamarin.Forms |
Control: SfListView |
Published Date: November 28, 2017 |
Last Revised Date: November 28, 2017

SfListView allows you to automatically bring the selected item into the view when it changed at runtime by calling the ScrollToRowIndex method.

 

In linear layout, you can get the row index of SelectedItem using the DisplayItems.IndexOf method and adjust the index based on header and group header like below code snippets.

 

C#

 

Click here to download the sample.

2X faster development

The ultimate Xamarin UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment
Comments
Steve
Mar 20, 2020

Is there a winforms version of this?

Reply
Farjana Parveen Ayubb [Syncfusion]
Mar 23, 2020

Hi Steve,

You can able to scroll the specific record in SfDataGrid by using SfDataGrid.TableControl.ScrollRows.ScrollInView method. Please refer the below KB document.

https://www.syncfusion.com/kb/9605/how-to-scroll-to-a-specific-record-programmatically-in-winforms-datagrid-sfdatagrid

Regards, Farjana Parveen A

Darek Potchebout
Jun 22, 2020

I believe the question was, Is there a WinForms verion of this for the SfListView? Can the WinForm's version of the SfListView be programmatically scrolled to move the selected item into view?

Reply

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
Live Chat Icon