GrapeCity.Win.MultiRow Namespace > CellValidateAction Class : DoAction Method |
Protected MustOverride Sub DoAction( _ ByVal context As ValidateActionContext _ )
Dim instance As CellValidateAction Dim context As ValidateActionContext instance.DoAction(context)
protected abstract void DoAction( ValidateActionContext context )
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 End Class
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