DataControlBase.ShowValidationAttributeErrors Property
Gets or sets whether or not error icons are displayed within 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
Property Value
Type | Description |
---|---|
Boolean | true to display errors within cells that fail validation specified by the Data Annotations attribute(s); otherwise, false. |
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 for an individual column, set its ColumnBase.ShowValidationAttributeErrors property to false. If the ColumnBase.ShowValidationAttributeErrors property is set to DefaultBoolean.Default, the visibility of error icons is specified by the ShowValidationAttributeErrors property.