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

GGC Filter NotLike Operator

Thread ID:





93896 Apr 9,2010 05:34 PM UTC Oct 11,2010 06:15 AM UTC WinForms 4
Tags: GridControl
Myles Kelman
Asked On April 9, 2010 05:34 PM UTC

How can I create a filter condition on the GGC that is equivalent to [myColumnName] NOT LIKE '*myValue*'

Jisha Joy [Syncfusion]
Replied On April 13, 2010 12:08 PM UTC


Jisha Joy [Syncfusion]
Replied On April 13, 2010 12:09 PM UTC


You could refer the following code for performing not Like filtering action. see the code

this.gridGroupingControl1.DataSource = myDataTable;
string filter = "[Item] <> 'item 1'";

RecordFilterDescriptor rfd = new RecordFilterDescriptor(filter);



Myles Kelman
Replied On October 7, 2010 02:37 PM UTC

I figured it out for anyone who cares...

Use a FilterCondition with a regular expression.

FilterCondition f = new FilterCondition();
f.CompareOperator = FilterCompareOperator.Match;
f.CompareValue = "^((?!myValue).)*$";


Jisha Joy [Syncfusion]
Replied On October 11, 2010 06:15 AM UTC

Hi Myles,

Thanks you for your update.



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