Syncfusion.SfListView.XForms
Example 
Syncfusion.ListView.XForms Namespace > LayoutBase Class > ScrollToRowIndex Method : ScrollToRowIndex(Int32,ScrollToPosition,Boolean) Method
The index of the row to scroll.
Defines position in the view to which row index is scrolled
true to disable scroll animation while changing the view; otherwise, false. The default is false.

ScrollToRowIndex(Int32,ScrollToPosition,Boolean) Method

Scrolls the SfListView to the row at the given index.
Syntax

Parameters

rowIndex
The index of the row to scroll.
scrollToPosition
Defines position in the view to which row index is scrolled
disableAnimation
true to disable scroll animation while changing the view; otherwise, false. The default is false.
Remarks
When AutoFitMode is height or 'DynamicHeight', scroll animation will be disabled by default in android and iOS. If it is called while loading SfListView, then set disableAnimation as true to scroll to appropriate row index, else view doesn't scrolled in android
Example
SfListView listView = new SfListView();
int index = listView.DataSource.DisplayItems.IndexOf(viewModel.Customers[2]); 
listView.LayoutManager.ScrollToRowIndex(index, ScrollToPosition.MakeVisible , true);
AssemblyVersion

Syncfusion.SfListView.XForms: 17.2451.0.34

See Also