Xceed Toolkit Plus for WPF v4.6 Documentation
CellValidationError Constructor


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid Namespace > CellValidationError Class : CellValidationError Constructor

The CellValidationRule that contains the validation rule that failed.

The cell whose value failed the validation process.
An object containing the content to display when an error occurs.
The exception that was raised when the value failed the validation process. Can be a null reference (Nothing in Visual Basic).
Initializes a new instance of the CellValidationError class specifying various information on the validation rule that caused the caused the value to fail the validation process.
Syntax
'Declaration
 
Public Function New( _
   ByVal ruleInError As CellValidationRule, _
   ByVal cellInError As Cell, _
   ByVal errorContent As Object, _
   ByVal exception As Exception _
)
'Usage
 
Dim ruleInError As CellValidationRule
Dim cellInError As Cell
Dim errorContent As Object
Dim exception As Exception
 
Dim instance As New CellValidationError(ruleInError, cellInError, errorContent, exception)
public CellValidationError( 
   CellValidationRule ruleInError,
   Cell cellInError,
   object errorContent,
   Exception exception
)

Parameters

ruleInError

The CellValidationRule that contains the validation rule that failed.

cellInError
The cell whose value failed the validation process.
errorContent
An object containing the content to display when an error occurs.
exception
The exception that was raised when the value failed the validation process. Can be a null reference (Nothing in Visual Basic).
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

CellValidationError Class
CellValidationError Members