GrapeCity.Win.MultiRow Namespace > ValidateActionContext Class : IsValid Property |
Public ReadOnly Property IsValid As Boolean
Dim instance As ValidateActionContext Dim value As Boolean value = instance.IsValid
public bool IsValid {get;}
class MyIconNotifyAction : IconNotify { protected override void DoAction(ValidateActionContext context) { base.DoAction(context); //When the error icon pops up, a system sound plays at the same time. if (!context.IsValid) { System.Media.SystemSounds.Asterisk.Play(); } }
Private Class MyIconNotifyAction Inherits IconNotify Protected Overloads Overrides Sub DoAction(ByVal context As ValidateActionContext) MyBase.DoAction(context) 'When the error icon pops up, a system sound plays at the same time. If Not context.IsValid Then System.Media.SystemSounds.Asterisk.Play() End If End Sub
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