VB.NET, C#
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.
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
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.
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