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
Creates a new instance of the ConditionalFormattingObject class.
public ConditionalFormattingObject()
Initializes a new instance of the ConditionalFormattingObject class.
public ConditionalFormattingObject(string name, ConditionTypes type, string tvalue1, string tvalue2, bool applyToRow)
Formatting object name.
typeConditionTypesThe condition type.
tvalue1stringLeft value of the condition.
tvalue2stringRight value of the condition.
applyToRowboolDetermines if the condition should be applied on a row.
Properties
Determines whether case-sensitive comparisons will be made when evaluating string values.
public bool CaseSensitive { get; set; }
Gets or sets a value containing condition's type
public ConditionTypes ConditionType { get; set; }
Gets or sets a value containing condition's left value
public string TValue1 { get; set; }
Methods
Creates a new object that is a copy of the current instance.
Copies the source's settings to this instance.
public override void Copy(BaseFormattingObject source)
Overrides:
Evaluates the condition specified by this object against the actualValue.
public override bool Evaluate(GridViewRowInfo row, GridViewColumn column)
RadGridView row.
columnGridViewColumnRadGridView column.
Returns:Returns true if the formatting object should apply.
Overrides: