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

'ScrollInView' and 'SelectedIndex' for GridDataControl

Thread ID:





118955 Apr 28,2015 01:02 AM UTC Apr 29,2015 06:51 PM UTC WPF 3
Tags: GridDataControl
Asked On April 28, 2015 01:02 AM UTC

Hi ,

Good day .

For my wpf project, im using 'ScrollInView' and 'SelectedIndex', i able to get in sfDataGrid but i can't find in the GridDataControl .
Is there any equal function for 'ScrollInView' and 'SelectedIndex' can get in the GridDataControl ?


Ganeshkumar Lingappan [Syncfusion]
Replied On April 28, 2015 01:13 PM UTC

Hi Yap,

Thank you for contacting Syncfusion support.

We have analyzed your query and you can get the SelectedIndex by resolving the datagrid.SelectedItem and you can access the ScrollInView method using datagrid.Model.Grid.ScrollInView in GridDataControl. Please refer the below code-snippet and sample in the below mentioned location.

Code snippet:

var selectedIndex = this.datagrid.Model.View.Records.IndexOfRecord(this.datagrid.SelectedItem);

//Accessing the ScrollInView Method

this.datagrid.Model.Grid.ScrollInView (new RowColumnIndex(rowIndex,columnIndex));

Sample Link: http://www.syncfusion.com/downloads/support/forum/118955/SelectedIndex588248002.zip

Please let us know if you require further assistance



Replied On April 29, 2015 06:51 AM UTC

Hi Ganeshkumar,

Thank you .


Ashok N [Syncfusion]
Replied On April 29, 2015 06:51 PM UTC

Hi Yap,

Thank you for your update. Please let us know if you require further assistance on this.




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