[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
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Chart Control
  [Expand]Pivot Grid
  [Expand]Rich Text Editor
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Vertical Grid
  [Collapse]Data Editors
   [Expand]Product Information
   [Collapse]Common Concepts
    [Expand]Binding to Data
    [Expand]Mask Editing
      Validation Overview
      Validation Settings
      Validation Error Message
      Validation Summary
    [Expand]List Editors
     Accessibility Support
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [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]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

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?​​​​​​​