Back to Devexpress

PropertyGridControl.AllowCommitOnValidationAttributeError Property

wpf-devexpress-dot-xpf-dot-propertygrid-dot-propertygridcontrol-18181a6d.md

latest1.7 KB
Original Source

PropertyGridControl.AllowCommitOnValidationAttributeError Property

Gets or sets whether a cell’s value can be posted to a data source if it has failed the validation specified by the Data Annotations attributes. This is a dependency property.

Namespace : DevExpress.Xpf.PropertyGrid

Assembly : DevExpress.Xpf.PropertyGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PropertyGrid

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

Set the AllowCommitOnValidationAttributeError property to true to allow an invalid value to be posted to a data source and the cell focus to be moved to another cell. 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.

See Also

PropertyGridControl Class

PropertyGridControl Members

DevExpress.Xpf.PropertyGrid Namespace