HasValidationError Property
See Also 
Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > Column Class : HasValidationError Property

Gets a value indicating whether the content of one of the cells contained in the column failed the validation process.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property HasValidationError As Boolean
C# 
public bool HasValidationError {get;}

Return Value

true if the content of one of the cells contained in the column has failed the validation process; false otherwise. By default, false.

Remarks

When the value of a cell fails the validation process, its HasValidationError property will return true and its ValidationError property will contain a CellValidationError, which provides information on the cell in error, the error content, the exception (if one was thrown), and the validation rule that failed.  If the validation rule that failed is a binding-level ValidationRule, it will be wrapped in a PassthroughCellValidationRule. Validation errors will also be reported by a row when the value of one or more of its cells fails the validation process. Like cells, when a row contains validation errors, its HasValidationError property will return true and its ValidationError property will contain a RowValidationError, which provides information on the row in error, the error content, the exception, and the validation rule that failed.

Requirements

Supported Frameworks: Microsoft .NET Framework version 3.5

See Also