Back to Devexpress

DataViewBase.ValidatesOnNotifyDataErrors Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-11dd49b9.md

latest2.1 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDefaultDescription
Booleantrue

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

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace