我正在使用基础设施 UltraValidator。我想从验证消息框中删除文本“验证失败并出现以下错误”。请帮帮我
这是代码>>
private void uValidate_ValidationError(object sender, ValidationErrorEventArgs e){
Infragistics.Win.Misc.ValidationSettings settings;
settings = this.uValidate.GetValidationSettings( UltraTextEditor );
settings.NotificationSettings.Action = Infragistics.Win.Misc.NotificationAction.MessageBox;
settings.NotificationSettings.Caption = "Required Fields";
settings.NotificationSettings.Text = "Select Customer";
}
bool ValidateMyControls()
{
Infragistics.Win.Misc.Validation v = uValidate.Validate();
return v.IsValid;
}
uValidate 是 UltraValidator 控件
当方法 ValidateMyControls() 被触发时,我会得到一个消息框,顶部有一个字符串“验证失败,出现以下错误:”。我需要删除或编辑此字符串。
问候安菲尔