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.

'ScrollInView' and 'SelectedIndex' for GridDataControl

Thread ID:

Created:

Updated:

Platform:

Replies:

118955 Apr 27,2015 09:02 PM Apr 29,2015 02:51 PM WPF 3
loading
Tags: GridDataControl
yapwen
Asked On April 27, 2015 09:02 PM

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 ?

Regards,
Yap

Ganeshkumar Lingappan [Syncfusion]
Replied On April 28, 2015 09:13 AM

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

Regards,

Ganeshkumar


yapwen
Replied On April 29, 2015 02:51 AM

Hi Ganeshkumar,

Thank you .

Regards,
Yap

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

Hi Yap,

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

Thanks,

Ashok


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.

;