Back to Devexpress

DataUpdateFormatCondition.Rule Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataupdateformatcondition-b2bab361.md

latest2.4 KB
Original Source

DataUpdateFormatCondition.Rule Property

Gets or sets a rule that determines whether the data update formatting should be applied. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public DataUpdateRule Rule { get; set; }
vb
Public Property Rule As DataUpdateRule

Property Value

TypeDescription
DataUpdateRule

One of the DataUpdateRule enumeration values.

|

Available values:

NameDescription
Never

The data update formatting is never applied.

| | Always |

The data update formatting is applied when a corresponding value decreases or increases.

| | Increase |

The data update formatting is applied when a corresponding value increases.

| | Decrease |

The data update formatting is applied when a corresponding value decreases.

| | Custom |

The data update formatting is applied according to a custom logic defined in the TableView.CustomDataUpdateFormatCondition (or TreeListView.CustomDataUpdateFormatCondition) event handler.

|

Remarks

Use the Rule property to set a rule that determines whether the data update formatting is applied.

To define a custom logic, set the Rule property to DataUpdateRule.Custom and handle the TableView.CustomDataUpdateFormatCondition (or TreeListView.CustomDataUpdateFormatCondition) event.

See Also

DataUpdateFormatCondition Class

DataUpdateFormatCondition Members

DevExpress.Xpf.Grid Namespace