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

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

Definition

Constructors

Creates a new instance of the ConditionalFormattingObject class.

C#
public ExpressionFormattingObject()

Creates a new instance of the ConditionalFormattingObject class.

C#
public ExpressionFormattingObject(string name, string expression, bool applyToRow)
Parameters:namestring

Formatting object name.

expressionstring

The expression of the formatting object.

applyToRowbool

Determines if the condition should be applied on a row.

Properties

Gets or sets the expression of the object.

C#
public string Expression { 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 expression of the formatting object.

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)