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

Contains information about the condition and the formatting properties to apply.

Definition

Constructors

Creates a new instance of the ConditionalFormattingObject class.

C#
public ConditionalFormattingObject()

Initializes a new instance of the ConditionalFormattingObject class.

C#
public ConditionalFormattingObject(string name, ConditionTypes type, string tvalue1, string tvalue2, bool applyToRow)
Parameters:namestring

Formatting object name.

typeConditionTypes

The condition type.

tvalue1string

Left value of the condition.

tvalue2string

Right value of the condition.

applyToRowbool

Determines if the condition should be applied on a row.

Properties

Determines whether case-sensitive comparisons will be made when evaluating string values.

C#
public bool CaseSensitive { get; set; }

Gets or sets a value containing condition's type

C#
public ConditionTypes ConditionType { get; set; }

Gets or sets a value containing condition's left value

C#
public string TValue1 { get; set; }

Gets or sets a value containing condition's right value

C#
public string TValue2 { get; set; }

Methods

Creates a new object that is a copy of the current instance.

C#
public override object Clone()
Returns:

object

Overrides: BaseFormattingObject.Clone()

Copies the source's settings to this instance.

C#
public override void Copy(BaseFormattingObject source)
Parameters:sourceBaseFormattingObject

Overrides: BaseFormattingObject.Copy(BaseFormattingObject)

Evaluates the condition specified by this object against the actualValue.

C#
public override bool Evaluate(GridViewRowInfo row, GridViewColumn column)
Parameters:rowGridViewRowInfo

RadGridView row.

columnGridViewColumn

RadGridView column.

Returns:

bool

Returns true if the formatting object should apply.

Overrides: BaseFormattingObject.Evaluate(GridViewRowInfo, GridViewColumn)