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

Scroll to the selected row of the SfDataGrid

Thread ID:





118890 Apr 20,2015 04:22 PM UTC Jan 4,2016 12:33 PM UTC WPF 3
Tags: SfDataGrid
Constantin Patak
Asked On April 20, 2015 04:22 PM UTC


I am currently having a SfDataGrid that has a DataTable as ItemsSource and I am trying to do the following:
  1. Find a specific row of the grid based on the string of a TextBox (e.g. write the LastName in a TextBox and find the first record that contains this record).
  2. After finding this record, select it.
  3. If the selected record is not visible (we cannot see it on the view that is shown on the screen), scroll until it becomes visible. 

How can we implement the described functionality? Please note that it is a very important and urgent issue for us.

Thank you.

Jai Ganesh S [Syncfusion]
Replied On April 22, 2015 02:05 AM UTC

Hi Patak,

Thank you for using Syncfusion products.

We have analyzed your query. We don’t have a direct support to select the specific row based on the text entered in textbox. However you can achieve this requirement through workaround. For your reference we have prepared the sample based on this and please find the sample under the following location,

Sample: http://www.syncfusion.com/downloads/support/directtrac/137224/DatatableSample664078815.zip

In the above sample, we have compared the searched text with all records in Grid and add a record to a SelectedItem of Grid in TextChanged event.

Please let us know if you need further assistance.

Thank you,

Jai Ganesh S

Geoff Scott
Replied On January 2, 2016 02:59 AM UTC


This works fine when I don't have a hierarchy. 

Could you post (or point me to a post) that shows me how to find where the first instance of a particular leaf (matches search criteria) is in the tree.
I would then expand to that point and highlight the row.

Note, I do not want to filter, I simply want to open the first specific tree path matching a selection criterion.

Geoff Scott

Jai Ganesh S [Syncfusion]
Replied On January 4, 2016 12:33 PM UTC

Hi Geoff,

We have already planned for the Searching feature in SfDataGrid (with nested grid) for this release and currently we are working on this. This feature will be included in our upcoming Volume 4 main release, 2016 and it will available by the mid of  January, 2016. We will update you once Volume 4 has been rolled out.

Jai Ganesh S


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

or the page will be automatically redirected to 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