Log In
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Chart Control
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Collapse]Data Editors
   [Expand]Product Information
   [Collapse]Common Concepts
     Binding to Data
    [Expand]Mask Editing
      Validation Overview
      Validation Settings
      Validation Error Message
      Validation Summary
    [Expand]List Editors
     Accessibility Support
   [Expand]Editor Types
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Validation Error Message

When an editor fails validation logic, an error message can be displayed. You can specify what elements (error text, error image, or error frame) are displayed within the message, using the ValidationSettings.ErrorDisplayMode property.

ErrorDisplayMode property value Description Image
ImageWithText An error message is represented by both an error image and error text.
ImageWithTooltip An error message is represented by an error image. The image's tooltip displays the error text.
Text An error message is represented by error text only.
None A specific error frame is displayed near the editor.

You can customize error message elements using properties accessed via the ASPxEdit.ValidationSettings property.


An error frame is automatically rendered on the client side in the following situations.

Otherwise, the error frame is not rendered on the client side, as this is unnecessary.

However, in some scenarios you need to perform the editor's validation totally by yourself, without using any predefined validation capabilities. In these cases, set the ValidationSettings.EnableCustomValidation property to true to force the editor to render the error frame on the client side.


If an editor's Native property is set to true, the editor is rendered in native mode using a standard HTML element. In this case, the editor is painted in browser's native style and its appearance depends upon the browser settings only. So DevExpress style settings (e.g. ValidationSettings.ErrorDisplayMode, ValidationSettings.ErrorFrameStyle , etc.) are not in effect.

Expanded See Also

Is this topic helpful?​​​​​​​