Back to Devexpress

DataViewBase.AllowCommitOnValidationAttributeError Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-46a697e0.md

latest2.0 KB
Original Source

DataViewBase.AllowCommitOnValidationAttributeError Property

Gets or sets whether 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.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
Boolean

true to allow posting of invalid cell values to a data source; otherwise, false.

|

Remarks

The WPF DXGrid and WPF DXTreeList controls support 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.

To learn more, see Attributes-Based Validation.

See Also

ShowValidationAttributeErrors

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace