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.

How to perform incremental search ?

To perform the incremental search in SfDataGrid, the SearchHelper class can be used. The SearchHelper class is used to perform the search operation in the SfDataGrid. The SearchBrush property can be used to highlight the search text of grid with default color(yellow). This feature can be added to the SfDataGrid by including the namespace as Syncfusion.UI.Xaml.Grid.Helpers.

 

You can use the Search method of SearchHelper class to search the record. From the attached sample, to enable the search panel, select the row in the grid and press Ctrl+F key in the keyboard.

 

 

Below code illustrates on to find the previous and next matched records based on the given text by using FindNext and FindPrevious method. You can use the navigation arrow in the search panel to move the focus to that searched record from the attached sample.

 

 

Below code will be used to search only the selected columns by overriding SearchCell method of SearchHelper.

 

 

 

Refer the below example which demonstrates an incremental search with the SfDataGrid.

 

C:\Users\muthukumar.kalyanasu\AppData\Local\Microsoft\Windows\INetCache\Content.Word\9899.gif

 

Sample: SearchingTextinSfDataGrid

Article ID: Published Date: Last Revised Date: Platform: Control:
8505 02/28/2018 02/28/2018 WPF SfDataGrid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.