Validation Summary

  • 3 minutes to read

Validation summary, which is represented by the ASPxValidationSummary control, allows you to summarize validation errors from multiple controls and then displays them in a single block. This helps you to organize screen space more effectively if validation is required for several editors.


DevExpress ASP.NET Data Editors support only the ASPxValidationSummary control and do not support standard ASP.NET ValidationSummary


The ASPxValidationSummary editor is a panel with the displayed validation errors of the editors, whose validation group corresponds with the ASPxValidationSummary.ValidationGroup property value. If the ValidationGroup property is not specified, the editor displays validation errors of the editors with an unspecified ValidationSettings.ValidationGroup property.

The manner in which validation error texts are presented within the ASPxValidationSummary's panel can be controlled using the ASPxValidationSummary.RenderMode property. They can be displayed as a table, or as a bulleted or ordered list. Validation error texts can also serve as links, if the ASPxValidationSummary.ShowErrorAsLink property is set to true. Clicking a link in this case, moves focus to the corresponding invalid editor.


The code sample below demonstrates use of the ASPxValidationSummary control. The image below shows the result.


using DevExpress.Web.ASPxEditors;


protected void Page_Load(object sender, EventArgs e)
          if (!IsPostBack && !IsCallback)
See Also