Version

SetValidationSettings Method

Assigns the specified ValidationSettings instance to the specified control.
Syntax
'Declaration
 
Public Sub SetValidationSettings( _
   ByVal control As Control, _
   ByVal validationSettings As ValidationSettings _
) 
public void SetValidationSettings( 
   Control control,
   ValidationSettings validationSettings
)

Parameters

control
The control to be associated with the ValidationSettings.
validationSettings
The ValidationSettings instance to be associated with the control.
Remarks

A ValidationSettings instance can be extended to any control, with the exception of the Infragistics controls that host embeddable editors. The following list enumerates these controls:

  • UltraGrid
  • UltraTree
  • UltraExplorerBar
  • UltraDayView
  • UltraWeekView
  • UltraMonthViewSingle
  • UltraListView




These controls support validation through the embeddable editors themselves, which are associated with the ValidationSettings instance that is extended to the editor provider control that provides the editor to the host.

While a ValidationSettings instance can be extended to any control, doing so will only have an effect if the control supports validation in the classic sense of the word. For example, extending a ValidationSettings instance to a Panel control is possible, but doing so will have no real effect since the Panel control does not support editing a value. The reason a ValidationSettings is extended more liberally than might be expected is that the alternative could prevent one from being extended to a control that a developer might have added validation support to in a derived class.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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