Xceed Grid for WinForms v4.3 Documentation
DataTypeCriterion Class
Members 


Xceed.Validation.v1.3 Assembly > Xceed.Validation Namespace : DataTypeCriterion Class
Specialization of the ValidationCriterion class that validates a value using a data type.
Syntax
'Declaration
 
<TypeConverterAttribute("Xceed.Validation.Design.ValidationExpressionConverter,Xceed.Validation.v1.3.Design,Version=1.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")>

<DesignTimeVisibleAttribute(False)>

<ToolboxItemAttribute(False)>

Public Class DataTypeCriterion 

   Inherits ValidationCriterion
'Usage
 
Dim instance As DataTypeCriterion
[TypeConverter("Xceed.Validation.Design.ValidationExpressionConverter,Xceed.Validation.v1.3.Design,Version=1.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6")]

[DesignTimeVisible(false)]

[ToolboxItem(false)]

public class DataTypeCriterion : ValidationCriterion 
Remarks

The DataTypeCriterion class is the type used for all comparisons. The classes ConstantListCriterion, ConstantValueCriterion, InputValueCriterion, InputCellValueCriterion and RangeCriterion all derive from DataTypeCriterion. Therefore, for criteria based on these types, a data type is specified (and required).

ValidationDataType.String will be compared using string comparison.

For the validation of a date, the IFormatProvider is the current thread's date format.

Inheritance Hierarchy

System.Object
   Xceed.Validation.ValidationExpression
      Xceed.Validation.ValidationCriterion
         Xceed.Validation.DataTypeCriterion
            Xceed.Validation.ConstantListCriterion
            Xceed.Validation.ConstantValueCriterion
            Xceed.Validation.InputCellValueCriterion
            Xceed.Validation.InputValueCriterion
            Xceed.Validation.RangeCriterion

Requirements

Target Platforms: 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

DataTypeCriterion Members
Xceed.Validation Namespace