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

Assembly: DevExpress.WinUI.Grid.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(null, Handler = "RaiseChanged")]
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.

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