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

GGC Filter NotLike Operator

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

4 Replies

JJ Jisha Joy Syncfusion Team April 13, 2010 12:08 PM UTC

Hi


JJ Jisha Joy Syncfusion Team April 13, 2010 12:09 PM UTC

Hi,

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);

gridGroupingControl1.TableDescriptor.RecordFilters.Add(rfd);


-Jisha


MK Myles Kelman 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).)*$";

filterDescriptor.Conditions.Add(f);



JJ Jisha Joy Syncfusion Team October 11, 2010 06:15 AM UTC

Hi Myles,

Thanks you for your update.

Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon