UniqueDuplicateRuleFormatCondition.SelectiveExpression Property
In This Article
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.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#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.
<dxg:UniqueDuplicateRuleFormatCondition FieldName="LastName" SelectiveExpression="IsNullOrEmpty([LastName]) = false"/>
See Also