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:

Created:

Updated:

Platform:

Replies:

93896 Apr 9,2010 05:34 PM UTC Oct 11,2010 06:15 AM UTC WinForms 4
loading
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

Hi

Jisha Joy [Syncfusion]
Replied On 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

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

filterDescriptor.Conditions.Add(f);


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

Hi Myles,

Thanks you for your update.

Regards,
Jisha


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.

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

;