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.

UniqueDuplicateRuleFormatCondition Class

A Unique-Duplicate conditional format.

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

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.

        <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.

Inheritance

Object
DependencyObject
FormatConditionBase
UniqueDuplicateRuleFormatCondition
See Also