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.

Scroll to the selected row of the SfDataGrid

Thread ID:





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


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 21, 2015 10:05 PM

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 1, 2016 09:59 PM


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 07:33 AM

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.

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.