Skip to main content

PredefinedFormatNames Class

Lists names of the GridControl‘s predefined formats used in conditional formatting rules.

Namespace: DevExpress.WinUI.Grid

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

public static class PredefinedFormatNames

Remarks

<dxg:GridControl>
    <dxg:GridControl.FormatConditions>
        <!--Highlight top 5 Sales values in bold-->
        <dxg:TopBottomRuleFormatCondition 
            FieldName="Sales" Rule="TopItems" Threshold="5" 
            PredefinedFormatName="{x:Bind dxg:PredefinedFormatNames.BoldText}"/>
        <!--Highlight rows with duplicate State values in italic-->
        <dxg:UniqueDuplicateRuleFormatCondition 
            FieldName="State" Rule="Duplicate" ApplyToRow="True"
            PredefinedFormatName="{x:Bind dxg:PredefinedFormatNames.ItalicText}"/>
    </dxg:GridControl.FormatConditions>
</dxg:GridControl>

Inheritance

Object
PredefinedFormatNames
See Also