New to Telerik UI for WinFormsStart a free 30-day trial

Represents a filter predicate

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.GridView.dll

Syntax:

C#
public class FilterPredicate : NotifyPropertyBase, INotifyPropertyChangingEx, INotifyPropertyChanged

Inheritance: objectNotifyPropertyBaseFilterPredicate

Implements: INotifyPropertyChangedINotifyPropertyChangingEx

Inherited Members NotifyPropertyBase.SuspendNotifications()NotifyPropertyBase.ResumeNotifications(bool)NotifyPropertyBase.ResumeNotifications()NotifyPropertyBase.OnPropertyChanged(string)NotifyPropertyBase.OnPropertyChanged(PropertyChangedEventArgs)NotifyPropertyBase.OnPropertyChanging(string, object, object)NotifyPropertyBase.OnPropertyChanging(string)NotifyPropertyBase.OnPropertyChanging(PropertyChangingEventArgsEx)NotifyPropertyBase.ProcessPropertyChanging(PropertyChangingEventArgsEx)NotifyPropertyBase.SetProperty<T>(string, ref T, T)NotifyPropertyBase.IsSuspendedNotifyPropertyBase.PropertyChangedNotifyPropertyBase.PropertyChanging...

Constructors

Creates new FilterPredicate object

C#
public FilterPredicate()

Creates a new FilterPredicate object using the parameters.

C#
public FilterPredicate(FilterExpression.BinaryOperation binaryOperator, GridKnownFunction function, params object[] values)
Parameters:binaryOperatorFilterExpression.BinaryOperation

The binary operator used in the filter predicate.

functionGridKnownFunction

The GridKnownFunction used in the filter predicate.

valuesobject[]

The values used in the filter predicate.

Creates a new FilterPredicate object using the parameters.

C#
public FilterPredicate(FilterExpression.BinaryOperation binaryOperator, GridKnownFunction function)
Parameters:binaryOperatorFilterExpression.BinaryOperation

The binary operator used in the filter predicate.

functionGridKnownFunction

The GridKnownFunction used in the filter predicate.

Properties

Gets or sets a value that indicates which binary operator will be used when concatenating multiple filter expressions.

C#
[Browsable(true)]
public FilterExpression.BinaryOperation BinaryOperator { get; set; }

Gets or sets the function that is applied on the Values and the rows in the grid to filter them.

C#
public GridKnownFunction Function { get; set; }

Gets a value indicating whether the filter predicate is valid.

C#
[Browsable(false)]
public bool IsValid { get; }

A collection of values and parameters that are used in the predicate. Each entry should be a value or reference to a parameter in the Parameters.

C#
[Browsable(true)]
public ArrayList Values { get; }

Methods

// Raises the PropertyChanging event //

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

This method is called right before the event is fired.

C#
protected override void ProcessPropertyChanged(PropertyChangedEventArgs e)
Parameters:ePropertyChangedEventArgs

Overrides: NotifyPropertyBase.ProcessPropertyChanged(PropertyChangedEventArgs)