Xceed Toolkit Plus for WPF v4.6 Documentation
CellErrorStyle Property (Cell)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > Cell Class : CellErrorStyle Property
Gets or sets the style that will be used by the cell when its content fails the validation process.
Syntax
'Declaration
 
Public Property CellErrorStyle As Style
'Usage
 
Dim instance As Cell
Dim value As Style
 
instance.CellErrorStyle = value
 
value = instance.CellErrorStyle
public Style CellErrorStyle {get; set;}

Property Value

The style that will be used by the cell when its content fails the validation process. By default, a null reference (Nothing in Visual Basic).
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

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Cell Class
Cell Members

DataGrid Fundamentals

Styles
Validating Data