UniqueDuplicateRuleFormatCondition Class
Namespace: DevExpress.UI.Xaml.Grid
Assembly: DevExpress.UI.Xaml.Grid.v19.2.dll
Declaration
[ContentProperty(Name = "Format")]
public class UniqueDuplicateRuleFormatCondition :
FormatConditionBase
<ContentProperty(Name:="Format")>
Public Class UniqueDuplicateRuleFormatCondition
Inherits FormatConditionBase
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.
<Grid:GridControl>
<Grid:GridControl.FormatConditions>
<Grid:UniqueDuplicateRuleFormatCondition FieldName="State" Rule="Duplicate"
PredefinedFormatName="{x:Bind Grid:PredefinedFormatNames.ItalicText}"/>
</Grid:GridControl.FormatConditions>
</Grid:GridControl>
The image below shows the result.

See Also
We are updating the DevExpress product documentation website and this page is part of our new experience. During this transition period, product documentation remains available in our previous format at documentation.devexpress.com. Learn More...