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.
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|