Skip to main content
All docs
V26.1
  • FormatConditionRuleDataUpdate.HighlightTime Property

    Gets or sets the time during which the format is applied.

    Namespace: DevExpress.XtraEditors

    Assembly: DevExpress.XtraEditors.v26.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    [DefaultValue(600)]
    [DXCategory("Behavior")]
    [XtraSerializableProperty]
    public int HighlightTime { get; set; }

    Property Value

    Type Default Description
    Int32 600

    The delay in milliseconds after which the format is cleared.

    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.

    image

    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