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.
Unfortunately, activation email could not send to your email. Please try again.

GGC Filter NotLike Operator

Thread ID:

Created:

Updated:

Platform:

Replies:

93896 Apr 9,2010 01:34 PM Oct 11,2010 02:15 AM Windows Forms 4
loading
Tags: GridControl
Myles Kelman
Asked On April 9, 2010 01:34 PM

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 08:08 AM

Hi

Jisha Joy [Syncfusion]
Replied On April 13, 2010 08:09 AM

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 10:37 AM

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 02:15 AM

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.

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.

;