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. Image for the cookie policy date
close icon

How to change Filter Bar Query ?

1. Can I default FilterRow query to use CONTAINS instead of LIKE ? 2. Can I change FilterRow query to use OR instead of AND ?

1 Reply

AD Administrator Syncfusion Team June 22, 2006 06:26 PM UTC

Hi, You would have to derive the Filterbar and override this method: public class MyGridFilterBar : GridFilterBar { protected override string GetFilterFromRow(GridDataBoundGrid grid) { string filter = base.GetFilterFromRow(grid); filter = filter.Replace("LIKE", "CONTAINS"); filter = filter.Replace("AND","OR"); retrun filter; } } Let me know if this helps. Best Regards, Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon