Spread Windows Forms 6.0 Product Documentation
InvalidData Event
See Also  Support Options
FarPoint.Win Assembly > FarPoint.Win Namespace > SuperEditBase Class : InvalidData Event


Glossary Item Box

Occurs when the control contains invalid data.

Syntax

Visual Basic (Declaration) 
Public Event InvalidData As InvalidDataEventHandler
Visual Basic (Usage)Copy Code
Dim instance As SuperEditBase
Dim handler As InvalidDataEventHandler
 
AddHandler instance.InvalidData, handler
C# 
public event InvalidDataEventHandler InvalidData

Remarks

This event occurs when a control loses the focus if it contains invalid data. Which values are invalid depends on the control type and the settings of their properties.

If you prefer that the control does not validate data when it loses the focus, set the CanValidate property to false.

Contrast this event with the UserError event. The InvalidData event occurs when the data in the control is validated as the focus leaves the control. The UserError event occurs while the user is working in the control or when code or a database is providing code to the control; for example, the user may try to type a letter into an FpMask control that has a mask defined to allow only numbers.

For more information, see the LostFocus event in the Microsoft .NET Framework Reference.

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

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.