Xceed Grid for WinForms v4.3 Documentation
Welcome to Xceed Grid for WinForms v4.3 / Sample applications / Validation Sample Application
In This Topic
    Validation Sample Application
    In This Topic

    Programming languages

    VB.NET, C#

    Overview

    Xceed Grid for WinForms provides built-in, highly and easily configurable input validation. A variety of validation types are supported, including regular expressions, which this sample application demonstrates.

    Demonstrates

    • The various types of input validation criterion types 

    • The various types of input validation criterion arguments 

    • How criterion types affect the choice of criterion arguments 

    • The use of the various classes needed to use input validation 

    • How to handle the GridControl CurrentColumnChanged event

    How to use

    In the Set up validation section, choose the Criterion type (such as 'greater than value', 'less than other cell value', 'regular expression, etc.) and the Criterion argument. The criterion arguments available for a given column change according to the criterion type chosen. Choose Manual or Automatic for the Validation level. When Manual is chosen, the buttons in the section are enabled. Try modifying the values in the grid's cells to see how the validation reacts.

    Project location & filename

    C#: Xceed Samples\Xceed Grid for WinForms v#.#\CSharp\Validation\Xceed.Grid.Samples.Validation.csproj

    VB.NET: Xceed Samples\Xceed Grid for WinForms v#.#\Visual Basic .NET\Validation\Xceed.Grid.Samples.Validation.vbproj