[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 Settings

To define editor validation logic, validation criteria can be specified via the following properties.

You can specify the particular error message for different validation criteria. To learn more, see the Validation Error Message.

The input focus can be automatically forced back to the editor's input region when editor validation fails. The ValidationSettings.SetFocusOnError property controls the change in input focus. This allows the user to quickly update the editor's invalid value.

Editor validation can start automatically after the editor value has been changed if the ValidationSettings.ValidateOnLeave property is set to true.

DevExpress editor's API provides the ability to work with a group of editors - validation group. Groups allow you to assign validation editors on a page to a specific category. Each validation group can be validated independently from other validation groups on the page. Use the ValidationSettings.ValidationGroup property to specify the name of the validation group for a particular editor.

An editor's validation can force a whole editor group validation if the editor's ValidationSettings.CausesValidation property is set to true.

Expanded Example

Expanded See Also

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