Xceed DataGrid for WPF v7.2 Documentation
Validate(Object,CultureInfo,CellValidationContext,FrameworkElement) Method


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid.ValidationRules Namespace > CellEditorErrorValidationRule Class > Validate Method : Validate(Object,CultureInfo,CellValidationContext,FrameworkElement) Method
The value to validate.
The CultureInfo of the value.
The validation context of the value to validate. The validation context includes both the associated cell and data item.
The cell editor that contains the value.
Validates the specified value using the provided information.
Syntax
'Declaration
 
Public Overloads Overrides Function Validate( _
   ByVal value As Object, _
   ByVal culture As CultureInfo, _
   ByVal context As CellValidationContext, _
   ByVal cellEditor As FrameworkElement _
) As ValidationResult
'Usage
 
Dim instance As CellEditorErrorValidationRule
Dim value As Object
Dim culture As CultureInfo
Dim context As CellValidationContext
Dim cellEditor As FrameworkElement
Dim value As ValidationResult
 
value = instance.Validate(value, culture, context, cellEditor)

Parameters

value
The value to validate.
culture
The CultureInfo of the value.
context
The validation context of the value to validate. The validation context includes both the associated cell and data item.
cellEditor
The cell editor that contains the value.
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

CellEditorErrorValidationRule Class
CellEditorErrorValidationRule Members
Overload List
Base Implementation in Validate(Object,CultureInfo,CellValidationContext,FrameworkElement)