Back to Devexpress

FormatConditionRuleValue.Value1 Property

windowsforms-devexpress-dot-xtraeditors-dot-formatconditionrulevalue-dot-value1.md

latest3.9 KB
Original Source

FormatConditionRuleValue.Value1 Property

SECURITY-RELATED CONSIDERATIONS

Deserializing layout settings from untrusted resources may create security issues. Serializable System.Object properties that contain custom type values are not (de)serialized automatically. Review the following help topic for information on how to (de)serialize custom type values: Safe Deserialization.

Gets or sets the first constant that is compared with column values.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public object Value1 { get; set; }
vb
<DXCategory("Behavior")>
<XtraSerializableProperty>
<DefaultValue(Nothing)>
Public Property Value1 As Object

Property Value

TypeDefaultDescription
Objectnull

A value that is compared with column values.

|

Remarks

Column cells are compared with the Value1 value using the FormatConditionRuleValue.Condition comparison operator. Specific comparison operators require two values. In this case, use Value1 along with FormatConditionRuleValue.Value2.

The Value1 and FormatConditionRuleValue.Value2 properties are not supported if the FormatConditionRuleValue.Condition property is set to None or Expression.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Value1 property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-grid-bind-to-business-objects/CS/GridBoundToRuntimeCreatedData/Form1.cs#L42

csharp
formatConditionRuleValue.Condition = FormatCondition.Greater;
formatConditionRuleValue.Value1 = DateTime.Today;
gridFormatRule.Rule = formatConditionRuleValue;

winforms-grid-bind-to-business-objects/VB/GridBoundToRuntimeCreatedData/Form1.vb#L44

vb
formatConditionRuleValue.Condition = FormatCondition.Greater
formatConditionRuleValue.Value1 = Date.Today
gridFormatRule.Rule = formatConditionRuleValue

See Also

Condition

Value2

FormatConditionRuleValue Class

FormatConditionRuleValue Members

DevExpress.XtraEditors Namespace