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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How do I both filter AND search a specific column?

Thread ID:

Created:

Updated:

Platform:

Replies:

148895 Nov 7,2019 12:29 PM UTC Nov 19,2019 07:10 AM UTC WPF 3
loading
Tags: SfDataGrid
Mark
Asked On November 7, 2019 12:29 PM UTC

I visited https://help.syncfusion.com/wpf/datagrid/search for the purpose of doing two things:
1. Filter results
2. Column-specific search

I've implemented them both but the problem is that the filtering works regardless of the column specified.

-----------------------

Say I have this table:
NameQuantityBrand
Viper Steel1Patriot
Vengeance LPX2Corsair
Trident Z3G.Skill

Now I want to:

1. Filter results that has "ri"

2. Search only under the column "Name"

What happens after running "ProductDataGrid.SearchHelper.Search("ri");" is:

1. 2nd row (Vengeance LPX) gets filtered out - this is intentional and running fine

2. It'll still show the 1st row with Viper Steel because the string "ri" exists within the brand Pat"ri"ot. But what I really wanted to do was to only look for "ri" among the Name column, if it doesn't exist there then filter it out, it doesn't matter whether there's a "ri" string from other columns.


Shobika Palani [Syncfusion]
Replied On November 8, 2019 09:32 AM UTC

Hi Mark,   
  
Thank you for contacting Syncfusion Support.   
  
We have KB for searching and filtering in specific column alone which satisfies your requirement. Please refer the below KB link.  
  
KB Link:   
  
Also, please refer the below sample.  
Sample Link:   
  
Please let us know, if you need any further other assistance from us.   
  
Regards,
Shobika
  


Mark
Replied On November 18, 2019 03:41 PM UTC

Thank you so much for the reply it worked

Mohanram Anbukkarasu [Syncfusion]
Replied On November 19, 2019 07:10 AM UTC

Hi Mark, 

Thanks for the update. 

We are glad to know that the provided solution worked at your end. Please let us know if you have any further queries on this. We are happy to help you. 

Regards, 
Mohanram A 


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.

Please sign in to access our forum

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

Live Chat Icon For mobile
Live Chat Icon