Skip to main content

DataViewBase.ValidatesOnNotifyDataErrors Property

Gets or sets whether the GridControl checks for and reports errors that are raised by a data source that implements INotifyDataErrorInfo.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public bool ValidatesOnNotifyDataErrors { get; set; }

Property Value

Type Default Description
Boolean true

true, to make the GridControl check for and report errors that are raised by a data source that implements INotifyDataErrorInfo; otherwise, false.

Remarks

Starting from v18.1, the GridControl checks for and reports errors that are raised by a data source that implements INotifyDataErrorInfo. To disable this validation type, set the ValidatesOnNotifyDataErrors property to false.

When the INotifyDataErrorInfo.GetErrors method returns a collection with multiple values, the GridControl displays the first error from this collection. If this collection contains a custom object, an error tooltip contains a value that the ToString method returns.

See Also