Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Collapse]DevExpress.Web.Data
   [Expand]ASPxDataBaseUpdatedEventArgs Class
   [Expand]ASPxDataBatchUpdateEventArgs Class
    ASPxDataBatchUpdateEventHandler Delegate
   [Expand]ASPxDataDeletedEventArgs Class
    ASPxDataDeletedEventHandler Delegate
   [Expand]ASPxDataDeleteValues Class
   [Expand]ASPxDataDeletingEventArgs Class
    ASPxDataDeletingEventHandler Delegate
   [Expand]ASPxDataInitNewRowEventArgs Class
    ASPxDataInitNewRowEventHandler Delegate
   [Expand]ASPxDataInsertedEventArgs Class
    ASPxDataInsertedEventHandler Delegate
   [Expand]ASPxDataInsertingEventArgs Class
    ASPxDataInsertingEventHandler Delegate
   [Expand]ASPxDataInsertValues Class
   [Expand]ASPxDataUpdatedEventArgs Class
    ASPxDataUpdatedEventHandler Delegate
   [Expand]ASPxDataUpdateValues Class
   [Expand]ASPxDataUpdatingEventArgs Class
    ASPxDataUpdatingEventHandler Delegate
   [Collapse]ASPxDataValidationEventArgs Class
     ASPxDataValidationEventArgs Members
    [Expand]ASPxDataValidationEventArgs Constructor
    [Collapse]ASPxDataValidationEventArgs Properties
      Errors Property
      IsNewRow Property
      RowError Property
    ASPxDataValidationEventHandler Delegate
   [Expand]ASPxGridViewToolbarItemClickEventArgs Class
    ASPxGridViewToolbarItemClickEventHandler Delegate
   [Expand]ASPxParseValueEventArgs Class
    ASPxParseValueEventHandler Delegate
   [Expand]ASPxStartRowEditingEventArgs Class
    ASPxStartRowEditingEventHandler Delegate
   [Expand]CardViewSelection Class
   [Expand]GridViewSelection Class
   [Expand]VerticalGridSelection Class
   [Expand]WebDataDetailRows Class
   [Expand]WebDataSelection Class
   [Expand]WebDataSelectionBase Class
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[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]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

ASPxDataValidationEventArgs.Errors Property

Gets a collection of row errors.

Namespace:DevExpress.Web.Data
Assembly:DevExpress.Web.v17.2.dll

Expanded Syntax

Property value

Type: Dictionary<GridViewColumn, String>
A System.Collections.Generic.Dictionary object that represents the collection of row errors.

Expanded Remarks

The Errors property represents a collection of keys and values. Keys are represented by data columns. Values represent error descriptions.

Expanded Example

This example demonstrates how to check the validity of data entered by end-users into a row. Validation is implemented within the ASPxGridView.RowValidating event handler. In this sample, validation fails in the cases listed below:

  • field value(s) is empty;
  • Contact Name and/or Company Name fields are set to a single character.

The ASPxGridView.HtmlRowPrepared event is handled to paint the row's contents red if the row is invalid. This event is raised for each data row when the corresponding row within the table has been created. This indicates rows within invalid data.

The ASPxGridView.StartRowEditing event is handled to display errors (if any) within the edited row when an end-user switches to an edit mode.

Expanded See Also

How would you rate this topic?​​​​​​​