All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TopBottomRuleFormatCondition Class

Represents the top-bottom and average conditional formats.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.2.dll

Declaration

[ContentProperty(Name = "Format")]
public class TopBottomRuleFormatCondition :
    FormatConditionBase
<ContentProperty(Name:="Format")>
Public Class TopBottomRuleFormatCondition
    Inherits 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.

<Grid:GridControl.FormatConditions>
    <Grid:TopBottomRuleFormatCondition FieldName="Sales" Rule="TopItems" Threshold="5"
                                PredefinedFormatName="{x:Bind Grid:PredefinedFormatNames.BoldText}"/>
</Grid:GridControl.FormatConditions>

The image below shows the result.

Inheritance

Object
DependencyObject
FormatConditionBase
TopBottomRuleFormatCondition
See Also