ASPxVerticalGridDataValidationEventArgs.EditorPropertiesErrors Property
Gets a collection of editor errors.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.1.dll
NuGet Package: DevExpress.Web
Declaration
Property Value
Type | Description |
---|---|
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.
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