Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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