Back to Devexpress

ASPxVerticalGridDataValidationEventArgs.EditorPropertiesErrors Property

aspnet-devexpress-dot-web-dot-aspxverticalgriddatavalidationeventargs.md

latest2.4 KB
Original Source

ASPxVerticalGridDataValidationEventArgs.EditorPropertiesErrors Property

Gets a collection of editor errors.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public Dictionary<VerticalGridDataRow, string> EditorPropertiesErrors { get; }
vb
Public ReadOnly Property EditorPropertiesErrors As Dictionary(Of VerticalGridDataRow, String)

Property Value

TypeDescription
Dictionary<VerticalGridDataRow, String>

The collection of errors.

|

Remarks

The vertical grid uses validation rules specified in the properties of row editors and stores discovered validation errors in the EditorPropertiesErrors property that provides a collection of keys and values. Keys are rows. Values are validation error descriptions.

csharp
protected void ASPxVerticalGrid1_RecordValidating(object sender, DevExpress.Web.ASPxVerticalGridDataValidationEventArgs e) {
    ASPxVerticalGrid verticalGrid = sender as ASPxVerticalGrid;
    e.EditorPropertiesErrors.Remove(verticalGrid.Rows["OrderTime"]);
}

You can set the UseEditorPropertiesInDataControlValidation property to false to ignore row editors’ validation settings.

Global.asax:

csharp
void Application_Start(object sender, EventArgs e) {  
    ASPxWebControl.BackwardCompatibility.UseEditorPropertiesInDataControlValidation = false;  
}

See Also

ASPxVerticalGridDataValidationEventArgs Class

ASPxVerticalGridDataValidationEventArgs Members

DevExpress.Web Namespace