TopBottomRuleFormatCondition Class
In This Article
Represents the top-bottom and average conditional formats.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
[ContentProperty(Name = "Format")]
public class TopBottomRuleFormatCondition :
FormatConditionBase
#Remarks
This conditional format allows you to highlight top/bottom values or values that are above/below an average value.
The XAML snippet below illustrates how to highlight top 5 Sales values.
<dxg:GridControl.FormatConditions>
<dxg:TopBottomRuleFormatCondition FieldName="Sales" Rule="TopItems" Threshold="5" PredefinedFormatName="BoldText"/>
</dxg:GridControl.FormatConditions>
The image below shows the result.
#Inheritance
Object
DependencyObject
FormatConditionBase
TopBottomRuleFormatCondition
See Also