Skip to main content
All docs
V21.2
  • TopBottomRuleFormatCondition Class

    Represents the top-bottom and average conditional formats.

    Namespace: DevExpress.UI.Xaml.Grid

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

    NuGet Package: DevExpress.Uwp.Controls

    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.

    <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