Skip to main content

DataControlBase.AllowCommitOnValidationAttributeError Property

Gets or sets whether or not a cell’s value that has failed validation specified by the Data Annotations attribute(s), can be posted to a data source. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public bool AllowCommitOnValidationAttributeError { get; set; }

Property Value

Type Description
Boolean

true to allow posting of invalid cell values to a data source; 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, if an end-user has entered an invalid value, the cell focus cannot be moved to another cell until the cell’s value is corrected. To allow an invalid value to be posted to a data source and the cell focus to be moved to another cell, set the AllowCommitOnValidationAttributeError to true.

See Also