Skip to main content

UniqueDuplicateRuleFormatCondition.SelectiveExpression Property

Gets or sets an expression that selects data records to which the Unique/Duplicate conditional format is applied. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Grid

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

NuGet Package: DevExpress.Uwp.Controls

Declaration

public string SelectiveExpression { get; set; }

Property Value

Type Description
String

A string value that specifies an expression that selects data records to which the Unique/Duplicate conditional format is applied.

Remarks

Use the SelectiveExpression property to define an expression that selects data records to which the Unique/Duplicate conditional format is applied.

The XAML snippet below illustrates how to exclude empty cells from UniqueDuplicateRuleFormatCondition’s rules.

 <Grid:UniqueDuplicateRuleFormatCondition FieldName="LastName" SelectiveExpression="IsNullOrEmpty([LastName]) = false"/>
See Also