Skip to main content
A newer version of this page is available. .

DataViewBase.HasErrors Property

Gets whether the view has any data editing errors. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public bool HasErrors { get; }

Property Value

Type Description
Boolean

true, if the view has any data editing errors; otherwise, false.

Remarks

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

The HasErrors property is updated when you post changes to a data source. Use the DataViewBase.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 the initial loading that can significantly decrease the control’s performance.

See Also