ColumnBase.ShowValidationAttributeErrors Property
Gets or sets whether or not error icons are displayed within column cells that fail validation specified by the Data Annotations attribute(s). This is a dependency property.
Namespace: DevExpress.UI.Xaml.Grid
Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
[XtraSerializableProperty]
public DefaultBoolean ShowValidationAttributeErrors { get; set; }
Property Value
Type | Description |
---|---|
DefaultBoolean | A DefaultBoolean enumeration value that specifies whether or not error icons are displayed within column cells that fail validation. |
Available values:
Name | Description |
---|---|
True | Corresponds to a Boolean value of true. |
False | Corresponds to a Boolean value of false. |
Default | The value is determined by a control’s current setting. The default value is automatically set for a control if an end-user doesn’t specify a value. |
Remarks
The Grid Control supports DataAnnotations attributes that specify data validation rules (to use data annotation attributes, reference the System.ComponentModel.DataAnnotations assembly).
By default, the Grid displays error icons within cells with invalid values. In this instance, if the DataControlBase.AllowCommitOnValidationAttributeError property is set to false, the cell focus cannot be moved to another cell until the cell’s value is corrected.
To override the default behavior and hide errors, set the ShowValidationAttributeErrors property to false. If the ShowValidationAttributeErrors property is set to DefaultBoolean.Default, the visibility of error icons is specified by the Grid’s DataControlBase.ShowValidationAttributeErrors property.