The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v18.2.dll

Declaration

[XtraSerializableProperty]
public DefaultBoolean ShowValidationAttributeErrors { get; set; }
<XtraSerializableProperty>
Public Property ShowValidationAttributeErrors As DefaultBoolean

Property Value

Type Description
DefaultBoolean

A DefaultBoolean enumeration value that specifies whether or not error icons are displayed within column cells that fail validation.

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.

See Also