FormatConditionRuleDataUpdate.Trigger Property

Gets or sets when to activate the format.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DefaultValue(FormatConditionDataUpdateTrigger.ValueChanged)]
[XtraSerializableProperty]
[DXCategory("Behavior")]
public FormatConditionDataUpdateTrigger Trigger { get; set; }
<DefaultValue(FormatConditionDataUpdateTrigger.ValueChanged)>
<XtraSerializableProperty>
<DXCategory("Behavior")>
Public Property Trigger As FormatConditionDataUpdateTrigger

Property Value

Type Default Description
FormatConditionDataUpdateTrigger

ValueChanged

A value that specifies when to activate the format.

Remarks

Example

This example uses a FormatConditionRuleDataUpdate format to temporarily highlight cells when their values increase. The highlight effect includes a custom background color and icon.

XtraGrid.GridFormatRule gridFormatRule = new DevExpress.XtraGrid.GridFormatRule();
DevExpress.XtraEditors.FormatConditionRuleDataUpdate formatConditionRuleDataUpdate = new DevExpress.XtraEditors.FormatConditionRuleDataUpdate();
gridFormatRule.Column = gridView1.Columns["Change"];
gridFormatRule.Name = "Format1";
formatConditionRuleDataUpdate.HighlightTime = 500;
formatConditionRuleDataUpdate.Icon.PredefinedName = "Flags3_1.png";
formatConditionRuleDataUpdate.PredefinedName = "Green Fill";
formatConditionRuleDataUpdate.Trigger = FormatConditionDataUpdateTrigger.ValueIncreased;
gridFormatRule.Rule = formatConditionRuleDataUpdate;
gridView1.FormatRules.Add(gridFormatRule);
See Also