ClassConditionalFormattingObject
Contains information about the condition and the formatting properties to apply.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
[Browsable(false)]
public class ConditionalFormattingObject : BaseFormattingObject, ICloneable, INotifyPropertyChanged, INotifyPropertyChangingEx, IEquatable<BaseFormattingObject>
Inheritance: objectBaseFormattingObjectConditionalFormattingObject
Implements:
Inherited Members
Constructors
ConditionalFormattingObject()
Creates a new instance of the ConditionalFormattingObject class.
Declaration
public ConditionalFormattingObject()
ConditionalFormattingObject(string, ConditionTypes, string, string, bool)
Initializes a new instance of the ConditionalFormattingObject class.
Declaration
public ConditionalFormattingObject(string name, ConditionTypes type, string tvalue1, string tvalue2, bool applyToRow)
Parameters
name
Formatting object name.
type
The condition type.
tvalue1
Left value of the condition.
tvalue2
Right value of the condition.
applyToRow
Determines if the condition should be applied on a row.
Properties
CaseSensitive
Determines whether case-sensitive comparisons will be made when evaluating string values.
ConditionType
Gets or sets a value containing condition's type
Declaration
public ConditionTypes ConditionType { get; set; }
Property Value
TValue1
Gets or sets a value containing condition's left value
Methods
Clone()
Creates a new object that is a copy of the current instance.
Copy(BaseFormattingObject)
Copies the source's settings to this instance.
Declaration
public override void Copy(BaseFormattingObject source)
Parameters
source
Overrides
Evaluate(GridViewRowInfo, GridViewColumn)
Evaluates the condition specified by this object against the actualValue.
Declaration
public override bool Evaluate(GridViewRowInfo row, GridViewColumn column)
Parameters
row
RadGridView row.
column
RadGridView column.
Returns
Returns true if the formatting object should apply.
Overrides