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

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

Declaration

public bool AllowCommitOnValidationAttributeError { get; set; }
Public Property AllowCommitOnValidationAttributeError As Boolean

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