Xceed Grid for WinForms v4.3 Documentation
GetValidationError Method


Xceed.Validation.v1.3 Assembly > Xceed.Validation Namespace > ValidationProvider Class : GetValidationError Method
The input component whose validation error you wish to retrieve.
Gets the validation error that is displayed next to the input component passed as a parameter.
Syntax
'Declaration
 
Public Function GetValidationError( _

   ByVal component As Object _

) As String
'Usage
 
Dim instance As ValidationProvider

Dim component As Object

Dim value As String

 

value = instance.GetValidationError(component)
public string GetValidationError( 

   object component

)

Parameters

component
The input component whose validation error you wish to retrieve.

Return Value

Returns the error if it exists; a null reference (Nothing in Visual Basic) otherwise.
Remarks
Use this method to extract error messages associated with compatible input components. For Xceed.Grid.Cell components, the ErrorDescription property can also be used to access the validation error.
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

ValidationProvider Class
ValidationProvider Members