Xceed DataGrid for WPF v7.2 Documentation
Validate Method (CellValidationRule)


Xceed.Wpf.DataGrid Assembly > Xceed.Wpf.DataGrid.ValidationRules Namespace > CellValidationRule Class : Validate 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.
Validates the specified value using the provided information.
Syntax
'Declaration
 
Public MustOverride Function Validate( _

   ByVal value As Object, _

   ByVal culture As CultureInfo, _

   ByVal context As CellValidationContext _

) As ValidationResult
'Usage
 
Dim instance As CellValidationRule

Dim value As Object

Dim culture As CultureInfo

Dim context As CellValidationContext

Dim value As ValidationResult

 

value = instance.Validate(value, culture, context)
public abstract ValidationResult Validate( 

   object value,

   CultureInfo culture,

   CellValidationContext context

)

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.

Return Value

A ValidationResult indicating whether the value passed the validation process.
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

CellValidationRule Class
CellValidationRule Members