aspnet-devexpress-dot-web-dot-aspxverticalgriddatavalidationeventargs.md
Gets a collection of editor errors.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public Dictionary<VerticalGridDataRow, string> EditorPropertiesErrors { get; }
Public ReadOnly Property EditorPropertiesErrors As Dictionary(Of VerticalGridDataRow, String)
| Type | Description |
|---|---|
| Dictionary<VerticalGridDataRow, String> |
The collection of errors.
|
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.
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:
void Application_Start(object sender, EventArgs e) {
ASPxWebControl.BackwardCompatibility.UseEditorPropertiesInDataControlValidation = false;
}
See Also
ASPxVerticalGridDataValidationEventArgs Class