UniqueDuplicateRuleFormatCondition Class
In This Article
A Unique-Duplicate conditional format.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
[ContentProperty(Name = "Format")]
public class UniqueDuplicateRuleFormatCondition :
FormatConditionBase
#Remarks
The Unique-Duplicate conditional format allows you to format cells whose values are unique or duplicate.
The following XAML snippet illustrates how to highlight duplicate State values in italic.
<dxg:GridControl.FormatConditions>
<dxg:UniqueDuplicateRuleFormatCondition
FieldName="State"
Rule="Duplicate"
PredefinedFormatName="ItalicText"
ApplyToRow="True"/>
</dxg:GridControl.FormatConditions>
The image below shows the result.
#Inheritance
Object
DependencyObject
FormatConditionBase
UniqueDuplicateRuleFormatCondition
See Also