Xceed Grid for WinForms v4.3 Documentation
Xceed.Validation.v1.3 Assembly / Xceed.Validation Namespace / InputCellValueCriterion Class / InputCellValueCriterion Constructor / InputCellValueCriterion Constructor(String,ValidationLevel,CompareValueOperator,String,ValidationDataType,Boolean,Boolean,Boolean,CustomValidationMessages)
A string that substitutes name variable in error messages to define the criterion.
A ValidationLevel value representing the point at which validation will be performed for the criterion.
A CompareValueOperator value representing the operator used to compare two values.
The field name of the other cell with which the input component is compared.
A ValidationDataType value representing the expected data type for the criterion.
true if the input component must contain a value; false otherwise.
true if the comparison method is case sensitive; false otherwise.
true if white spaces should be trimmed from the input component's value before testing the criterion; false otherwise.
A reference to a CustomValidationMessages object representing the custom messages for this validation criterion. a null reference (Nothing in Visual Basic) is accepted and states that the ValidationProvider.DefaultValidationMessages will be used when validating.


In This Topic
    InputCellValueCriterion Constructor(String,ValidationLevel,CompareValueOperator,String,ValidationDataType,Boolean,Boolean,Boolean,CustomValidationMessages)
    In This Topic
    Initializes a new instance of the InputCellValueCriterion class using the specified values.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal criterionName As String, _
       ByVal level As ValidationLevel, _
       ByVal compareOperator As CompareValueOperator, _
       ByVal fieldName As String, _
       ByVal dataType As ValidationDataType, _
       ByVal requiredField As Boolean, _
       ByVal caseSensitive As Boolean, _
       ByVal trim As Boolean, _
       ByVal customMessages As CustomValidationMessages _
    )
    'Usage
     
    Dim criterionName As String
    Dim level As ValidationLevel
    Dim compareOperator As CompareValueOperator
    Dim fieldName As String
    Dim dataType As ValidationDataType
    Dim requiredField As Boolean
    Dim caseSensitive As Boolean
    Dim trim As Boolean
    Dim customMessages As CustomValidationMessages
     
    Dim instance As New InputCellValueCriterion(criterionName, level, compareOperator, fieldName, dataType, requiredField, caseSensitive, trim, customMessages)

    Parameters

    criterionName
    A string that substitutes name variable in error messages to define the criterion.
    level
    A ValidationLevel value representing the point at which validation will be performed for the criterion.
    compareOperator
    A CompareValueOperator value representing the operator used to compare two values.
    fieldName
    The field name of the other cell with which the input component is compared.
    dataType
    A ValidationDataType value representing the expected data type for the criterion.
    requiredField
    true if the input component must contain a value; false otherwise.
    caseSensitive
    true if the comparison method is case sensitive; false otherwise.
    trim
    true if white spaces should be trimmed from the input component's value before testing the criterion; false otherwise.
    customMessages
    A reference to a CustomValidationMessages object representing the custom messages for this validation criterion. a null reference (Nothing in Visual Basic) is accepted and states that the ValidationProvider.DefaultValidationMessages will be used when validating.
    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