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. Image for the cookie policy date

Scroll to top or bottom

How do I programtically scroll the grid to the top or bottom or the current filtered view?

1 Reply

FP Farjana Parveen Ayubb Syncfusion Team July 16, 2019 11:21 AM UTC

Hi Van Ice, 
  
We have analyzed your requirement “Programmatically scroll the DataGrid” in UWP. You can achieve this by ScrollInView method. You can scroll programmatically to particular cell using ScrollInView method by passing row and column index. Please refer the below code snippet, 
  
C#: 
int rowIndex = this.dataGrid.GetLastDataRowIndex(); 
int columnIndex = this.dataGrid.GetLastColumnIndex(); 
this.dataGrid.ScrollInView(new RowColumnIndex(rowIndex, columnIndex)); 
  
 
 
Regards, 
Farjana Parveen A 


Loader.
Live Chat Icon For mobile
Up arrow icon