Back to Devexpress

DataViewBase.HasValidationError Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-8792f00f.md

latest2.3 KB
Original Source

DataViewBase.HasValidationError Property

Gets whether the view has a validation error that does not allow users to post changes 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 HasValidationError { get; }
vb
Public ReadOnly Property HasValidationError As Boolean

Property Value

TypeDescription
Boolean

true if the view has a validation error that does not allow users to post changes to a data source; otherwise, false.

|

Remarks

Use the DataViewBase.HasErrors property to check whether the view has any data editing errors. The DataViewBase.HasErrors property works only if the DataViewBase.ErrorsWatchMode property is set to All , Cell , or Row.

The DataViewBase.HasErrors property is updated when you post changes to a data source. Use the HasValidationError property to check whether the view has any validation errors that prohibit you from posting changes to a data source.

Note

When the DataViewBase.ErrorsWatchMode property is set to All , Cell , or Row , the GridControl revalidates its data during initial loading; this can significantly decrease control performance.

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace